瀏覽代碼

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 年之前
父節點
當前提交
bd3d9b4dc8
共有 1 個文件被更改,包括 1 次插入0 次删除
  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'),