mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
ARTORIAS
This commit is contained in:
parent
2462539a50
commit
972f3caf78
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ class ApiWikiEditStar(ApiStar):
|
|||
WikiPageT = self.alchemy.get(WikiPage)
|
||||
|
||||
user = await data.user()
|
||||
if not (user.role == "Admin" or user.role == "Member" or user.role == "Bot"):
|
||||
if not ("admin" in user.roles or "member" in user.roles or "bot" in user.roles):
|
||||
raise ForbiddenError("You do not have sufficient permissions to edit this page.")
|
||||
|
||||
if page_id is None:
|
||||
|
|
Loading…
Reference in a new issue