Permalink
Browse files

Fix regression with admin permission check

  • Loading branch information...
BluSyn committed Sep 17, 2012
1 parent f48c917 commit 0281b7cc67cfc1fdb844f6323d70e4c1afdf9245
Showing with 1 addition and 1 deletion.
  1. +1 −1 content/admin.inc.php
View
@@ -34,7 +34,7 @@
// Supports restricting based on specific user permission
if (tw_isloaded('user') && isset($item['perms'])) {
- if (!check_user($item['perms'])) continue;
+ if (!user_hasperm($item['perms'])) continue;
}
$T['content'] .= '

0 comments on commit 0281b7c

Please sign in to comment.