Added by Jai prakash over 11 years ago
Trying to write a plug-in for which I need to check if the user has a particular permission . For example I am thinking of something like this
if (user.current has "view_private_notes" )
do something
end
How can i do this
if User.current.allowed_to?(:view_private_notes, Herve Harster)
do something
end