diff options
author | Tofu Linden <tofu.linden@lindenlab.com> | 2010-02-26 19:23:42 +0000 |
---|---|---|
committer | Tofu Linden <tofu.linden@lindenlab.com> | 2010-02-26 19:23:42 +0000 |
commit | 213ff5a4e0fa150d91c1a68fb56bb7cb605020d6 (patch) | |
tree | 2ac41641567265dee7ccb4c36c5a7873c6b8773d /indra/newview/llagentaccess.cpp | |
parent | 470c05b70808f0a51090c0f50847fe614bf041e9 (diff) |
EXT-5820 I can copy asset UUID from non-FULLPERM assets turning on admin mode.
If you're reading this message, this was reviewed by Soft, Nyx or Aura. :)
Diffstat (limited to 'indra/newview/llagentaccess.cpp')
-rw-r--r-- | indra/newview/llagentaccess.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/indra/newview/llagentaccess.cpp b/indra/newview/llagentaccess.cpp index eb978eb6c1..915dabb935 100644 --- a/indra/newview/llagentaccess.cpp +++ b/indra/newview/llagentaccess.cpp @@ -69,12 +69,21 @@ bool LLAgentAccess::isGodlike() const #endif } +bool LLAgentAccess::isGodlikeWithoutAdminMenuFakery() const +{ +#ifdef HACKED_GODLIKE_VIEWER + return true; +#else + return mGodLevel > GOD_NOT; +#endif +} + U8 LLAgentAccess::getGodLevel() const { #ifdef HACKED_GODLIKE_VIEWER return GOD_MAINTENANCE; #else - if(mAdminOverride) return GOD_FULL; + if(mAdminOverride) return GOD_FULL; // :( return mGodLevel; #endif } |