Project

General

Profile

Feature #3804

Updated by Marek Hulán over 10 years ago

so I could ask like this  
 <pre> 
 Host.for(user, :view_hosts) 
 </pre>  
 or this 
 <pre> 
 User.current.can?(:view_hostgroups) 
 User.current.can?(:view_hostgroups, @hostgroup) User.current.can?(:view_facts) 
 </pre>

Back