#2882 Use decorators to check admin permission and admin session timeout
Merged by pingou. Opened by cverna.
cverna/pagure fix_2698  into  master

Download 2882.patch

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

  • Use issue tracker decorator in ui/repo.py
  • New decorator for admin session timeout.
  • Add is_repo_admin decorator to ui/plugins.py
  • Add decorator to check admin permission.
  • Add a new decorators module.

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

Metadata