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
Hi I have been puzzled with a question about where and how you can define a user as :admin or :student. It may be obvious. But I just did not find where it is. Thanks.
The text was updated successfully, but these errors were encountered:
Hello, I currently use "declarative authorization" gem. One of the main characteristics of this gem is that all my users have different roles. As such, it has a function called role_symbols which returns an array of symbols for the user in question. For example:
myuser.role_symbols
would return
[:admin, :student, :student_delegate]
I hope this clears the issue, thanks for your interest!
Hi I have been puzzled with a question about where and how you can define a user as :admin or :student. It may be obvious. But I just did not find where it is. Thanks.
The text was updated successfully, but these errors were encountered: