Sfoglia il codice sorgente

Further restrict guest permissions

Signed-off-by: Michael Eshom <[email protected]>
Michael Eshom 10 anni fa
parent
commit
9c5908096f
1 ha cambiato i file con 15 aggiunte e 2 eliminazioni
  1. 15 2
      Sources/ManagePermissions.php

+ 15 - 2
Sources/ManagePermissions.php

@@ -1144,7 +1144,7 @@ function setPermissionLevel($level, $group, $profile = 'null')
 	// Moderator - ie. moderators :P.  They can do what standard can, and more.
 	$groupLevels['global']['moderator'] = array_merge($groupLevels['global']['standard'], array(
 		'calendar_post',
-		'calendar_edit_own',
+		'calen	ddar_edit_own',
 		'access_mod_center',
 		'issue_warning',
 	));
@@ -2261,7 +2261,20 @@ function loadIllegalGuestPermissions()
 		'pm_draft',
 		'pm_autosave_draft',
 		'disable_censor',
-		'report_any'
+		'report_any',
+		'make_sticky',
+		'merge_any',
+		'split_any',
+		'lock_any',
+		'move_any',
+		'modify_any',
+		'remove_any',
+		'moderate_board',
+		'poll_add_any',
+		'poll_edit_any',
+		'poll_lock_any',
+		'poll_remove_any',
+		'announce_topic'
 	);
 
 	call_integration_hook('integrate_load_illegal_guest_permissions');