summaryrefslogtreecommitdiff
path: root/indra/newview/llagentaccess.cpp
diff options
context:
space:
mode:
authorangela <angela@lindenlab.com>2010-02-28 20:55:58 +0800
committerangela <angela@lindenlab.com>2010-02-28 20:55:58 +0800
commit1df1be10afd14fe80d491617e175f4586a78f71f (patch)
tree6e7a55591c2166ae732a7854f329e9bfd800546b /indra/newview/llagentaccess.cpp
parent75e5441f2da7252749174db70719a78637bc4eeb (diff)
parentb20307a683073c415804966ed5b363fb68879ee5 (diff)
merge
Diffstat (limited to 'indra/newview/llagentaccess.cpp')
-rw-r--r--indra/newview/llagentaccess.cpp11
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
}