Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

more perms

  • Loading branch information...
commit 38802c61cf58d0826a34b0fd0528e05d4253044c 1 parent 9cebbae
@shish authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  themes/danbooru/view.theme.php
  2. +1 −1  themes/lite/view.theme.php
View
2  themes/danbooru/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)";
}
View
2  themes/lite/view.theme.php
@@ -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)";
}
Please sign in to comment.
Something went wrong with that request. Please try again.