Browse Source

Owner should not see the issue warning button because he cannot issue a warning to himself anyway

Signed-off-by: emanuele <[email protected]>
emanuele 12 years ago
parent
commit
bd3d9b4dc8
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Sources/Profile.php

+ 1 - 0
Sources/Profile.php

@@ -288,6 +288,7 @@ function ModifyProfile($post_errors = array())
 					'file' => 'Profile-Actions.php',
 					'function' => 'issueWarning',
 					'token' => 'profile-iw%u',
+					'enabled' => !$context['user']['is_owner'],
 					'permission' => array(
 						'own' => array('issue_warning'),
 						'any' => array('issue_warning'),