Skip to content

Commit ee99b76

Browse files
darkretailerthorsten
authored andcommitted
got some permission error and this fixed it in my case
1 parent 615b79e commit ee99b76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

phpmyfaq/news.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686

8787
// Show a link to edit the news?
8888
$editThisEntry = '';
89-
if ($user->perm->hasPermission($user->getUserId(), PermissionType::NEWS_EDIT)) {
89+
if ($user->perm->hasPermission($user->getUserId(), PermissionType::NEWS_EDIT->value)) {
9090
$editThisEntry = sprintf(
9191
'<a href="./admin/index.php?action=news&amp;do=edit&amp;id=%d">%s</a>',
9292
$newsId,

0 commit comments

Comments
 (0)