Project

General

Profile

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 5 years ago. Updated 10 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Authorization
Target version:
Difficulty:
Triaged:
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Associated revisions

Revision cf2e77a5 (diff)
Added by Eric Helms about 5 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 5 years ago

  • Category set to Authorization

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

  • Status changed from New to Ready For Testing

#3 Updated by Dominic Cleal about 5 years ago

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

#4 Updated by Dmitri Dolguikh about 5 years ago

  • Target version changed from 1.8.4 to 1.8.3

#5 Updated by Dmitri Dolguikh about 5 years ago

  • Target version changed from 1.8.3 to 1.8.4

#6 Updated by Dmitri Dolguikh about 5 years ago

  • Target version changed from 1.8.4 to 1.8.3

#7 Updated by Dominic Cleal about 5 years ago

  • Legacy Backlogs Release (now unused) set to 10

#8 Updated by Eric Helms almost 5 years ago

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

#9 Updated by The Foreman Bot over 3 years ago

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

Also available in: Atom PDF