We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 615b79e commit ee99b76Copy full SHA for ee99b76
phpmyfaq/news.php
@@ -86,7 +86,7 @@
86
87
// Show a link to edit the news?
88
$editThisEntry = '';
89
-if ($user->perm->hasPermission($user->getUserId(), PermissionType::NEWS_EDIT)) {
+if ($user->perm->hasPermission($user->getUserId(), PermissionType::NEWS_EDIT->value)) {
90
$editThisEntry = sprintf(
91
'<a href="./admin/index.php?action=news&do=edit&id=%d">%s</a>',
92
$newsId,
0 commit comments