Commit 5a3bda13 authored by Mayra Cabrera's avatar Mayra Cabrera

Fixes resolution for environment entity

parent e16fec65
...@@ -47,13 +47,10 @@ class EnvironmentEntity < Grape::Entity ...@@ -47,13 +47,10 @@ class EnvironmentEntity < Grape::Entity
request.current_user request.current_user
end end
<<<<<<< HEAD
def can_read_deploy_board? def can_read_deploy_board?
can?(current_user, :read_deploy_board, environment.project) can?(current_user, :read_deploy_board, environment.project)
end end
=======
>>>>>>> upstream/master
def can_access_terminal? def can_access_terminal?
can?(request.current_user, :create_environment_terminal, environment) can?(request.current_user, :create_environment_terminal, environment)
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment