Index: trunk/core/units/users/users_event_handler.php =================================================================== diff -u -N -r8397 -r8402 --- trunk/core/units/users/users_event_handler.php (.../users_event_handler.php) (revision 8397) +++ trunk/core/units/users/users_event_handler.php (.../users_event_handler.php) (revision 8402) @@ -9,23 +9,28 @@ function mapPermissions() { parent::mapPermissions(); - $permissions = Array( - // admin - 'OnSetPersistantVariable' => Array('self' => 'view'), // because setting to logged in user only - 'OnUpdateRootPassword' => Array('self' => true), // because setting to logged in user only + $permissions = Array ( + // admin + 'OnSetPersistantVariable' => Array('self' => 'view'), // because setting to logged in user only + 'OnUpdateRootPassword' => Array('self' => true), // because setting to logged in user only - // front - 'OnRefreshForm' => Array('self' => true), + // front + 'OnRefreshForm' => Array('self' => true), - 'OnForgotPassword' => Array('self' => true), - 'OnResetPassword' => Array('self' => true), - 'OnResetPasswordConfirmed' => Array('self' => true), + 'OnForgotPassword' => Array('self' => true), + 'OnResetPassword' => Array('self' => true), + 'OnResetPasswordConfirmed' => Array('self' => true), - 'OnSubscribeQuery' => Array('self' => true), - 'OnSubscribeUser' => Array('self' => true), + 'OnSubscribeQuery' => Array('self' => true), + 'OnSubscribeUser' => Array('self' => true), - 'OnRecommend' => Array('self' => true), - ); + 'OnRecommend' => Array('self' => true), + ); + + if (!$this->Application->IsAdmin()) { + $permissions['OnItemBuild'] = Array('self' => true); + } + $this->permMapping = array_merge($this->permMapping, $permissions); }