OpenMF icon indicating copy to clipboard operation
OpenMF copied to clipboard

[Backend] Created access decorators for all user types

Open amlannandy opened this issue 3 years ago • 0 comments

Description

Created access decorators for each user type - Admin, Management, Extractor If you add this decorator (e.g mangement_only decorator) on a route, then that route will only be accessible to management.

Fixes #136

Type of change

  • [x] New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Add the necessary decorator to a route, now it can only be accessed by that user type.

Test Configuration:

  • Windows 10

screen-capture

Checklist:

  • [x] My code follows the style guidelines of this project
  • [x] I have performed a self-review of my own code
  • [x] I have commented my code, particularly in hard-to-understand areas
  • [ ] I have made corresponding changes to the documentation
  • [x] My changes generate no new warnings
  • [ ] I have added tests that prove my fix is effective or that my feature works
  • [x] New and existing unit tests pass locally with my changes
  • [ ] Any dependent changes have been merged and published in downstream modules

amlannandy avatar Mar 02 '21 05:03 amlannandy