Project

General

Profile

Actions

Feature #3804

closed

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 10 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Users, Roles and Permissions
Target version:
Difficulty:
Triaged:
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 1 (0 open1 closed)

Related to Foreman - Feature #812: cant assign roles to groups, just to usersClosedMarek Hulán03/31/2011Actions
Actions

Also available in: Atom PDF