Changeset 2834
- Timestamp:
- 11/21/08 00:40:07 (7 weeks ago)
- Files:
-
- 1 modified
-
trunk/htdocs/system/classes/acl.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/htdocs/system/classes/acl.php
r2751 r2834 126 126 return false; 127 127 } 128 129 // Add the permission to the admin group 130 $perm = ACL::token_id( $name ); 131 $admin = UserGroup::get( 'admin'); 132 if( $admin ) { 133 ACL::grant_group( $admin->id, $perm ); 134 } 135 128 136 EventLog::log('New permission created: ' . $name, 'info', 'default', 'habari'); 129 137 Plugins::act('permission_create_after', $name, $description );
