You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
May worth to complement the strict mode for resources too, like this:
class Forum < ActiveRecord::Base
resourcify strict: true
end
@user = User.first
@user.add_role(:admin, Forum.first) #=> ok
@user.add_role(:admin, Forum) #=> Exception?
This can work, in fact, as a security enforcement allowing only role assignment over instances.
The text was updated successfully, but these errors were encountered:
May worth to complement the strict mode for resources too, like this:
This can work, in fact, as a security enforcement allowing only role assignment over instances.
The text was updated successfully, but these errors were encountered: