Changeset 47 for trunk/Application/Model/Permission.php
- Timestamp:
- Jul 27, 2014, 9:14:56 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 1 2 1 config.php 2 .project
-
- Property svn:ignore
-
trunk/Application/Model/Permission.php
r40 r47 11 11 if($DbRow['SubGroup'] > 0) $Result = array_merge($Result, $this->LoadForGroup($DbRow['SubGroup'])); 12 12 if($DbRow['Operation'] > 0) 13 { 13 { 14 14 $DbResult2 = $this->Database->query('SELECT `PermissionOperation`.*, `Module`.`Name` FROM `PermissionOperation` JOIN `Module` ON `Module`.`Id` = `PermissionOperation`.`Module` WHERE `PermissionOperation`.`Id`='.$DbRow['Operation']); 15 15 $DbRow2 = $DbResult2->fetch_assoc(); … … 19 19 $this->Data = $Result; 20 20 } 21 21 22 22 function LoadForGroup($Group) 23 23 { … … 28 28 if($DbRow['SubGroup'] > 0) $Result = array_merge($Result, $this->LoadForGroup($DbRow['SubGroup'])); 29 29 if($DbRow['Operation'] > 0) 30 { 30 { 31 31 $DbResult2 = $this->Database->query('SELECT `PermissionOperation`.*, `Module`.`Name` FROM `PermissionOperation` JOIN `Module` ON `Module`.`Id` = `PermissionOperation`.`Module` WHERE `PermissionOperation`.`Id`='.$DbRow['Operation']); 32 32 $DbRow2 = $DbResult2->fetch_assoc(); … … 36 36 return($Result); 37 37 } 38 38 39 39 function Check($Module, $Action, $Item = 0) 40 40 { … … 44 44 } 45 45 } 46 47 ?>
Note:
See TracChangeset
for help on using the changeset viewer.