Fix adding private textures to closet for admins

This commit is contained in:
printempw 2018-02-24 19:48:44 +08:00
parent 6448b3bbab
commit 7cf044b2ce

View File

@ -63,7 +63,7 @@ class Closet
return true;
}
if ($t->public == 0 && $t->uploader != $uid) {
if ($t->public == 0 && $t->uploader != $uid && !app('users')->get($uid)->isAdmin()) {
return true;
}