start of fine-grained permissions

This commit is contained in:
Shish
2012-02-07 13:44:54 +00:00
parent bb49c09279
commit bff5a8453f
2 changed files with 15 additions and 1 deletions

View File

@@ -879,7 +879,7 @@ function get_debug_info() {
// print_obj ($object, $title, $return)
function print_obj($object,$title="Object Information", $return=false) {
global $user;
if(DEBUG && isset($_GET['debug']) && $user->is_admin()) {
if(DEBUG && isset($_GET['DEBUG']) && $user->can("override_config")) {
$pr = print_r($object,true);
$count = substr_count($pr,"\n")<=25?substr_count($pr,"\n"):25;
$pr = "<textarea rows='".$count."' cols='80'>$pr</textarea>";