소스 검색

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

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@718 a333f486-631f-4898-b8df-5754b55c2be0
romainq 14 년 전
부모
커밋
3427566f79
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      core/userrights.class.inc.php

+ 2 - 0
core/userrights.class.inc.php

@@ -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;