Project

General

Profile

Feature #32906

Add create permissions into React context

Added by Ondřej Pražák 4 months ago. Updated 4 months ago.

Status:
Ready For Testing
Priority:
Normal
Category:
-
Target version:
-
Difficulty:
Triaged:
No
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

Having 'create_foos' does not guarantee that user can actually create a particular foo because there might be a filter limiting what foos a user is allowed to create. However the information whether user has a create permission is useful - it means that it can at least create some foos, therefore we should show links and allow access to create form. If a user user does not have create permission and tries to access create form, we should show 'permission denied' instead of a form as we already do on existing pages. If a user has permission with a filter, we should show form and let backend handle the filters after submit.


Related issues

Related to Foreman Remote Execution - Bug #32907: User can access job wizard without create_invocation permissionReady For Testing

History

#1 Updated by Ondřej Pražák 4 months ago

  • Related to Bug #32907: User can access job wizard without create_invocation permission added

#2 Updated by The Foreman Bot 4 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/8628 added

Also available in: Atom PDF