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 #1

Updated by Marek Hulán over 10 years ago

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

Updated by Marek Hulán over 10 years ago

  • Tracker changed from Bug to Feature
Actions #3

Updated by Dominic Cleal over 10 years ago

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

Updated by Marek Hulán over 10 years ago

  • Description updated (diff)
Actions #5

Updated by Marek Hulán over 10 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).

Actions #6

Updated by Anonymous over 10 years ago

  • Target version changed from 1.9.3 to 1.9.2
Actions #7

Updated by Anonymous about 10 years ago

  • Target version changed from 1.9.2 to 1.9.1
Actions #8

Updated by Anonymous about 10 years ago

  • Target version changed from 1.9.1 to 1.9.0
Actions #9

Updated by Dominic Cleal about 10 years ago

  • Category set to Users, Roles and Permissions
  • % Done changed from 0 to 100
  • translation missing: en.field_release set to 4

Fixed via #812 for Foreman 1.5.0.

Actions #10

Updated by Dominic Cleal about 10 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF