Skip to content
Permalink
Browse files

updating the admin permissions to actually allow the admin to do admi…

…n things
  • Loading branch information
caseysoftware committed May 29, 2014
1 parent a0db32a commit 85f8feb06b8b7ada64c1f178da3bcc093ba47fc8
@@ -15,7 +15,7 @@
$other_users = false;
$no_modify = false;

if (canView('admin')) {
if (canView('system')) {
$other_users = true;
if (($show_uid = w2PgetParam($_REQUEST, 'show_user_events', 0)) != 0) {
$user_id = $show_uid;
@@ -17,7 +17,7 @@
$canDelete = canDelete('forums', $forum_id);
$canRead = $perms->checkModuleItem('forums', 'view', $forum_id);
$canEdit = $perms->checkModuleItem('forums', 'edit', $forum_id);
$canAdminEdit = canEdit('admin');
$canAdminEdit = canEdit('system');

if (!$canRead) {
$AppUI->redirect(ACCESS_DENIED);
@@ -231,7 +231,7 @@
$projects[$row['task_project']]['tasks'][] = $row;
}

$showEditCheckbox = isset($canEditTasks) && $canEditTasks || canView('admin');
$showEditCheckbox = (isset($canEditTasks) && $canEditTasks) || canView('system');

$durnTypes = w2PgetSysVal('TaskDurationType');
$tempoTask = new CTask();
@@ -172,7 +172,7 @@
$projects[$row['task_project']]['tasks'][] = $row;
}

$showEditCheckbox = isset($canEditTasks) && $canEditTasks || canView('admin');
$showEditCheckbox = (isset($canEditTasks) && $canEditTasks) || canView('system');

$durnTypes = w2PgetSysVal('TaskDurationType');
$tempoTask = new CTask();
@@ -14,7 +14,7 @@
$new_pwd2 = db_escape(trim(w2PgetParam($_POST, 'new_pwd2', null)));

$perms = &$AppUI->acl();
$canAdminEdit = canEdit('admin');
$canAdminEdit = canEdit('system');

// has the change form been posted
if ($new_pwd1 && $new_pwd2 && $new_pwd1 == $new_pwd2) {
@@ -2188,7 +2188,7 @@ public function canUserEditTimeInformation($project_owner = 0, $user_id = 0)
}

// Am I sys admin?
if (canEdit('admin')) {
if (canEdit('system')) {
$can_edit_time_information = true;
}
} else {

0 comments on commit 85f8feb

Please sign in to comment.
You can’t perform that action at this time.