diff --git a/endpoints/api/globalmessages.py b/endpoints/api/globalmessages.py index c7e60e8f7..6874a8d2c 100644 --- a/endpoints/api/globalmessages.py +++ b/endpoints/api/globalmessages.py @@ -71,9 +71,11 @@ class GlobalUserMessages(ApiResource): @nickname('createGlobalMessage') @validate_json_request('CreateMessage') @require_scope(scopes.SUPERUSER) - @show_if(features.SUPER_USERS) def post(self): """ Create a message """ + if not features.SUPER_USERS: + abort(404) + if SuperUserPermission().can(): model.message.create([request.get_json()['message']]) return make_response('', 201)