#229 History data was limited (administrators could not see any attribute!)

SVN:trunk[718]
This commit is contained in:
Romain Quetiez
2010-08-30 14:26:40 +00:00
parent 97f26c05e4
commit 8fc34a9fd5

View File

@@ -570,6 +570,8 @@ class UserRights
// When initializing, we need to let everything pass trough
if (!self::CheckLogin()) return true;
if (self::IsAdministrator($oUser)) return true;
// this module is forbidden for non admins
if (MetaModel::HasCategory($sClass, 'addon/userrights')) return false;