1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-27 13:34:28 +00:00
This commit is contained in:
Steffo 2020-06-19 02:08:00 +02:00
parent 2462539a50
commit 972f3caf78
Signed by: steffo
GPG key ID: 896A80F55F7C97F0

View file

@ -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: