summaryrefslogtreecommitdiff
path: root/app/controllers/master_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/master_controller.rb')
-rw-r--r--app/controllers/master_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/master_controller.rb b/app/controllers/master_controller.rb
index b2075d5..38cd441 100644
--- a/app/controllers/master_controller.rb
+++ b/app/controllers/master_controller.rb
@@ -7,7 +7,7 @@ class MasterController < AuthenticatedController
private
def assert_master_role
- return if current_user_account.role == 'master'
+ return if current_user_role == 'master'
render json: { error_message: 'No cuenta con los permisos necesarios' }, status: :forbidden
end