maudrid commented on issue #10905:
URL: 
https://github.com/apache/incubator-superset/issues/10905#issuecomment-698732485


   After spending too much time debugging I finally found the problem.
   It all came down to the order of the decorators.
   This order is working for me now:
   ```
   class AuthorizationAPI(BaseApi):
       csrf_exempt= True
   
       @expose('/role/<role>', methods=["POST"])
       @protect()
       @safe
       @permission_name("Add roles")
       def role(self, role):
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to