handlers: HandlerPageEdit: canAccess(): Check with effectivePermisisons()
这个提交包含在:
父节点
6304554358
当前提交
ad42c0f046
@ -25,7 +25,7 @@ SOFTWARE.
|
|||||||
#include "../parser.h"
|
#include "../parser.h"
|
||||||
bool HandlerPageEdit::canAccess([[maybe_unused]] std::string page)
|
bool HandlerPageEdit::canAccess([[maybe_unused]] std::string page)
|
||||||
{
|
{
|
||||||
return this->userSession->user.permissions.canEdit();
|
return effectivePermissions(page).canEdit();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool HandlerPageEdit::pageMustExist()
|
bool HandlerPageEdit::pageMustExist()
|
||||||
|
正在加载...
x
在新工单中引用
屏蔽一个用户