Revert "Handle PERM_EXPORT in LLPermissions."
This reverts commit 9c71afe73e.
This commit is contained in:
@@ -34,13 +34,6 @@
|
||||
#include "metapropertyt.h"
|
||||
#include "llsd.h"
|
||||
|
||||
///----------------------------------------------------------------------------
|
||||
/// Class LFSimFeatureHandlerInterface
|
||||
///----------------------------------------------------------------------------
|
||||
|
||||
//static
|
||||
LFSimFeatureHandlerInterface* LFSimFeatureHandlerInterface::sInstance;
|
||||
|
||||
///----------------------------------------------------------------------------
|
||||
/// Class LLPermissions
|
||||
///----------------------------------------------------------------------------
|
||||
@@ -482,14 +475,6 @@ BOOL LLPermissions::setNextOwnerBits(const LLUUID& agent, const LLUUID& group, B
|
||||
|
||||
bool LLPermissions::allowOperationBy(PermissionBit op, const LLUUID& requester, const LLUUID& group) const
|
||||
{
|
||||
// Singu extension: Make this function work for PERM_EXPORT operation (also on grids not supporting it).
|
||||
if (op == PERM_EXPORT)
|
||||
{
|
||||
// Requester must always be the owner; on grids supporting PERM_EXPORT, that bit
|
||||
// must be set in the mMaskEveryone mask, otherwise the requester must be the creator.
|
||||
return (!mIsGroupOwned && (mOwner == requester) &&
|
||||
(mCreator == requester || (LFSimFeatureHandlerInterface::ifInstance()->simSupportsExport() && (mMaskEveryone & PERM_EXPORT))));
|
||||
}
|
||||
if(requester.isNull())
|
||||
{
|
||||
// ...system making request
|
||||
|
||||
@@ -40,23 +40,6 @@ extern void mask_to_string(U32 mask, char* str);
|
||||
extern std::string mask_to_string(U32 mask);
|
||||
template<class T> class LLMetaClassT;
|
||||
|
||||
// Interface of LFSimFeatureHandler.
|
||||
class LFSimFeatureHandlerInterface
|
||||
{
|
||||
private:
|
||||
// LFSimFeatureHandler is a singleton.
|
||||
static LFSimFeatureHandlerInterface* sInstance;
|
||||
|
||||
protected:
|
||||
LFSimFeatureHandlerInterface(void) { sInstance = this; }
|
||||
virtual ~LFSimFeatureHandlerInterface() { }
|
||||
|
||||
public:
|
||||
virtual bool simSupportsExport() const = 0;
|
||||
|
||||
static LFSimFeatureHandlerInterface* ifInstance(void) { return sInstance; }
|
||||
};
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// Class LLPermissions
|
||||
//
|
||||
@@ -291,7 +274,6 @@ public:
|
||||
inline bool allowModifyBy(const LLUUID &agent_id, const LLUUID& group) const;
|
||||
inline bool allowCopyBy(const LLUUID& agent_id, const LLUUID& group) const;
|
||||
inline bool allowMoveBy(const LLUUID &agent_id, const LLUUID &group) const;
|
||||
inline bool allowExportBy(const LLUUID &agent_id) const; // Singu extension.
|
||||
|
||||
// This somewhat specialized function is meant for testing if the
|
||||
// current owner is allowed to transfer to the specified agent id.
|
||||
@@ -391,11 +373,6 @@ bool LLPermissions::allowTransferTo(const LLUUID &agent_id) const
|
||||
}
|
||||
}
|
||||
|
||||
bool LLPermissions::allowExportBy(const LLUUID& agent) const
|
||||
{
|
||||
return allowOperationBy(PERM_EXPORT, agent);
|
||||
}
|
||||
|
||||
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
// Class LLAggregatePermissions
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user