Skip to content

Commit

Permalink
Added member access to editor role, fixed error and removed error_log…
Browse files Browse the repository at this point in the history
…() from Acl
  • Loading branch information
jbroadway committed Apr 20, 2013
1 parent 299ccba commit 769da28
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/admin/handlers/page.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
}

// show admin edit buttons
if (User::require_acl ('admin', 'admin/edit'))) {
if (User::require_acl ('admin', 'admin/edit')) {
$lock = new Lock ('Webpage', $id);
$page->locked = $lock->exists ();
echo $tpl->render ('admin/editable', $page);
Expand Down
1 change: 1 addition & 0 deletions conf/acl.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
admin = On
admin/edit = On
admin/delete = On
content/member = On
content/private = On
blog = On
blocks = On
Expand Down
1 change: 0 additions & 1 deletion lib/Acl.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ public function init () {
*/
public function allowed ($resource, $user = false) {
$type = $user ? $user->type : User::$user->type;
error_log ("Is $type allowed to access $resource?");

return isset ($this->rules[$type][$resource])
? $this->rules[$type][$resource]
Expand Down

0 comments on commit 769da28

Please sign in to comment.