Commit e2b62f6e authored by Dylan Griffith's avatar Dylan Griffith

Remove API changes for assigning group runner to project

Since we are going to handle the API stuff later we can just leave this as error case since the model validations will stop this
parent d8dd25a6
...@@ -205,7 +205,6 @@ module API ...@@ -205,7 +205,6 @@ module API
def authenticate_enable_runner!(runner) def authenticate_enable_runner!(runner)
forbidden!("Runner is shared") if runner.is_shared? forbidden!("Runner is shared") if runner.is_shared?
forbidden!("Runner is locked") if runner.locked? forbidden!("Runner is locked") if runner.locked?
forbidden!("Runner is a group runner") if runner.assigned_to_group?
return if current_user.admin? return if current_user.admin?
forbidden!("No access granted") unless user_can_access_runner?(runner) forbidden!("No access granted") unless user_can_access_runner?(runner)
......
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