Feature #5221

Foreman should provide a helper method to allow an instance of a model to ask if the instance is authorized for a given permission.

Added by Eric Helms over 4 years ago. Updated 9 days ago.

Status:Closed
Priority:Normal
Assignee:Eric Helms
Category:Authorization
Target version:1.6.0
Difficulty: Team Backlog:
Triaged: Fixed in Releases:
Bugzilla link: Found in Releases:
Pull request:https://github.com/Katello/katello/pull/5430

Associated revisions

Revision cf2e77a5
Added by Eric Helms about 4 years ago

Fixes #5221: Adds a helper method to allow a model instance to inquire if the instance is authorized for a particular permission.

Model instances can be asked directly if they are authorized for a particular
permission by, for example, calling 'instance.authorized?(:view_model)'. This
abstracts and centralizes some of the repetitiveness of having to instantiate
an authorizer and pass the instance to the 'can?' method as the object of inquiry.

History

#1 Updated by Dominic Cleal over 4 years ago

  • Category set to Authorization

#2 Updated by Marek Hulán over 4 years ago

  • Status changed from New to Ready For Testing

#3 Updated by Dominic Cleal over 4 years ago

  • Assignee set to Eric Helms
  • Target version set to 1.8.4

#4 Updated by Dmitri Dolguikh about 4 years ago

  • Target version changed from 1.8.4 to 1.8.3

#5 Updated by Dmitri Dolguikh about 4 years ago

  • Target version changed from 1.8.3 to 1.8.4

#6 Updated by Dmitri Dolguikh about 4 years ago

  • Target version changed from 1.8.4 to 1.8.3

#7 Updated by Dominic Cleal about 4 years ago

  • Legacy Backlogs Release (now unused) set to 10

#8 Updated by Eric Helms about 4 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#9 Updated by The Foreman Bot almost 3 years ago

  • Pull request https://github.com/Katello/katello/pull/5430 added

Also available in: Atom PDF