Project

General

Profile

Feature #3804

As a developer I'd like to have API to verify permissions and to find resources based on filters

Added by Marek Hulán over 5 years ago. Updated 10 months ago.

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

Description

so I could ask like this

Host.for(user, :view_hosts)

or this
User.current.can?(:view_hostgroups)
User.current.can?(:view_hostgroups, @hostgroup)


Related issues

Related to Foreman - Feature #812: cant assign roles to groups, just to usersClosed2011-03-31

History

#1 Updated by Marek Hulán over 5 years ago

  • Related to Feature #812: cant assign roles to groups, just to users added

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

  • Tracker changed from Bug to Feature

#3 Updated by Dominic Cleal over 5 years ago

  • Status changed from New to Assigned
  • Assignee set to Marek Hulán
  • Target version set to 1.9.3

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

  • Description updated (diff)

#5 Updated by Marek Hulán over 5 years ago

  • Status changed from Assigned to Ready For Testing

This is part of bigger task #812. I mark this as ready for testing since this part is done (even though it can't be merged until #812 is done).

#6 Updated by Dmitri Dolguikh over 5 years ago

  • Target version changed from 1.9.3 to 1.9.2

#7 Updated by Dmitri Dolguikh about 5 years ago

  • Target version changed from 1.9.2 to 1.9.1

#8 Updated by Dmitri Dolguikh about 5 years ago

  • Target version changed from 1.9.1 to 1.9.0

#9 Updated by Dominic Cleal about 5 years ago

  • Category set to Authorization
  • % Done changed from 0 to 100
  • Legacy Backlogs Release (now unused) set to 4

Fixed via #812 for Foreman 1.5.0.

#10 Updated by Dominic Cleal about 5 years ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF