Forum: Ruby on Rails cancan and authorization on controller actions of a gem.

Posted by Msan Msan (msan)
on 2012-10-02 16:26
(Received via mailing list)
Hello.
I've installed cancan and bigbluebutton_rails,
https://github.com/mconf/bigbluebutton_rails.
The gem bigbluebutton_rails has some models and controllers, for
example has bigbluebutton/servers_controller.rb.
This controller has some actions like create, join, authorize, etc.
I want that only users with role admin can create.
What can I do?
I need to put load_resource in bigbluebutton/servers_controller.rb?
But it is inside a gem and I think it is not recommended to modify gems 
code.
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.