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 almost 9 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Users, Roles and Permissions
Target version:
Difficulty:
Triaged:
Bugzilla link:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Associated revisions

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

  • Category set to Users, Roles and Permissions

#2 Updated by Marek Hulán almost 9 years ago

  • Status changed from New to Ready For Testing

#3 Updated by Dominic Cleal almost 9 years ago

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

#4 Updated by Anonymous almost 9 years ago

  • Target version changed from 1.8.4 to 1.8.3

#5 Updated by Anonymous almost 9 years ago

  • Target version changed from 1.8.3 to 1.8.4

#6 Updated by Anonymous almost 9 years ago

  • Target version changed from 1.8.4 to 1.8.3

#7 Updated by Dominic Cleal almost 9 years ago

  • Legacy Backlogs Release (now unused) set to 10

#8 Updated by Eric Helms almost 9 years ago

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

#9 Updated by The Foreman Bot over 7 years ago

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

Also available in: Atom PDF