Commit e627906c6e6d0a745cea9a0be01258654cd5e591
1 parent
742f973e
getAllowedForDescriptor is a simple helper function
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3881 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
7 additions
and
0 deletions
lib/permissions/permissionutil.inc.php
| ... | ... | @@ -60,6 +60,13 @@ class KTPermissionUtil { |
| 60 | 60 | } |
| 61 | 61 | // }}} |
| 62 | 62 | |
| 63 | + // {{{ getAllowedForDescriptor | |
| 64 | + function getAllowedForDescriptor($oDescriptor) { | |
| 65 | + $oDescriptor =& KTUtil::getObject('KTPermissionDescriptor', $oDescriptor); | |
| 66 | + return $oDescriptor->getAllowed(); | |
| 67 | + } | |
| 68 | + // }}} | |
| 69 | + | |
| 63 | 70 | // {{{ getOrCreateAssignment |
| 64 | 71 | /** |
| 65 | 72 | * For a given permission object, get the assignment object for the | ... | ... |