get rid of is_admin, fixes #676

This commit is contained in:
Shish
2019-09-29 19:00:51 +01:00
parent 0f4a0275b5
commit a7bddb1dac
27 changed files with 99 additions and 64 deletions

View File

@ -63,7 +63,7 @@ class TipsTheme extends Themelet
"<th>Image</th>".
"<th>Text</th>";
if ($user->is_admin()) {
if ($user->can(Permissions::TIPS_ADMIN)) {
$html .= "<th>Action</th>";
}
@ -85,7 +85,7 @@ class TipsTheme extends Themelet
$del_link = "<a href='".make_link("tips/delete/".$tip['id'])."'>Delete</a>";
if ($user->is_admin()) {
if ($user->can(Permissions::TIPS_ADMIN)) {
$html .= "<td>".$del_link."</td>";
}