Permalink
Browse files

more perms

  • Loading branch information...
1 parent 9cebbae commit 38802c61cf58d0826a34b0fd0528e05d4253044c @shish committed Mar 31, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 themes/danbooru/view.theme.php
  2. +1 −1 themes/lite/view.theme.php
@@ -19,7 +19,7 @@ private function build_stats($image) {
$h_filesize = to_shorthand_int($image->filesize);
global $user;
- if($user->is_admin()) {
+ if($user->can("view_ip")) {
$h_ownerlink .= " ($h_ip)";
}
@@ -25,7 +25,7 @@ private function build_stats($image) {
$h_filesize = to_shorthand_int($image->filesize);
global $user;
- if($user->is_admin()) {
+ if($user->can("view_ip")) {
$h_ownerlink .= " ($h_ip)";
}

0 comments on commit 38802c6

Please sign in to comment.