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 about 4 years ago. Updated over 2 years ago.

Status:Closed
Priority:Normal
Assigned To:Eric Helms
Category:Authorization
Target version:Sprint 23
Difficulty: Bugzilla link:
Found in release: Pull request:https://github.com/Katello/katello/pull/5430
Story points-
Velocity based estimate-
Release1.6.0Release relationshipAuto

Associated revisions

Revision cf2e77a5
Added by Eric Helms almost 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 about 4 years ago

  • Category set to Authorization

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

  • Status changed from New to Ready For Testing

#3 Updated by Dominic Cleal about 4 years ago

  • Assigned To set to Eric Helms
  • Target version set to Sprint 22

#4 Updated by Dmitri Dolguikh almost 4 years ago

  • Target version changed from Sprint 22 to Sprint 23

#5 Updated by Dmitri Dolguikh almost 4 years ago

  • Target version changed from Sprint 23 to Sprint 22

#6 Updated by Dmitri Dolguikh almost 4 years ago

  • Target version changed from Sprint 22 to Sprint 23

#7 Updated by Dominic Cleal almost 4 years ago

  • Release set to 1.6.0

#8 Updated by Eric Helms almost 4 years ago

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

#9 Updated by The Foreman Bot over 2 years ago

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

Also available in: Atom PDF