lib/typus/authentication/base.rb in typus-3.1.0.rc19 vs lib/typus/authentication/base.rb in typus-3.1.0
- old
+ new
@@ -4,9 +4,13 @@
def admin_user
@admin_user
end
+ def current_role
+ admin_user.role.to_sym
+ end
+
def authenticate; end
def check_if_user_can_perform_action_on_user; end
def check_if_user_can_perform_action_on_resources; end
def check_if_user_can_perform_action_on_resource; end
def check_resource_ownership; end