This PR creates decorators that can be used to check if the user has admin permission and if the admin session has timeout. A new module was created to have all custom decorator used gathered in the same place.
Fixes #2698
5 new commits added
rebased onto 18c5f882dfbd3f8c0b6f4f6295cbc226d372ece7
This file doesn't seem to be used :)
rebased onto 30e5bd0c81c469523beb2a02d9f4236cd78d8925
Updated and all tests pass now :)
rebased onto 27e1bb8363728aa4add8e6fd8834628acba6e55a
rebased onto 4cc8c017d960d325d4f36f707a5a3fb1bca8571e
I'm seeing some tests failure but unrelated to this.
Let's merge :)
Pull-Request has been merged by pingou
This PR creates decorators that can be used to check if the user has admin permission and if the admin session has timeout.
A new module was created to have all custom decorator used gathered in the same place.
Fixes #2698