forked from Cavemanon/cavepaintings
get rid of is_admin, fixes #676
This commit is contained in:
@ -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>";
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user