From 972f3caf780e510d1924303daa30c155de53f6b2 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 19 Jun 2020 02:08:00 +0200 Subject: [PATCH] ARTORIAS --- royalpack/stars/api_wiki_edit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/royalpack/stars/api_wiki_edit.py b/royalpack/stars/api_wiki_edit.py index 866bf230..2c0f6d43 100644 --- a/royalpack/stars/api_wiki_edit.py +++ b/royalpack/stars/api_wiki_edit.py @@ -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: