summaryrefslogtreecommitdiff
path: root/app/controllers/projects/runner_projects_controller.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add a rubocop rule to check if a method 'redirect_to' is used without ↵31840-add-a-rubocop-that-forbids-redirect_to-inside-a-controller-destroy-action-without-an-explicit-statusblackst0ne2017-06-071-1/+1
| | | | explicitly set 'status' in 'destroy' actions of controllers
* Use Ability to check pre-requisite. Change back to 403 because:Lin Jen-Shin2016-06-291-2/+1
| | | | If we're using `can?` it would look weird to use 409
* Use 409 to indicate that interface might be outdatedLin Jen-Shin2016-06-281-2/+2
| | | | Because invalid actions shouldn't be shown on the page.
* Fix typo. It's ivar and the column was called lockedLin Jen-Shin2016-06-151-1/+1
|
* Return the association and check it in controller instead:Lin Jen-Shin2016-06-141-1/+2
| | | | | Feedback: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4641#note_12444891
* Avoid enabling locked runners. Give 403 in this caseLin Jen-Shin2016-06-141-0/+1
|
* Make the CI permission model simplerKamil Trzcinski2016-02-021-1/+1
| | | | | | | | | | | | | This MR simplifies CI permission model: - read_build: allows to read a list of builds, artifacts and trace - update_build: allows to cancel and retry builds - create_build: allows to create builds from gitlab-ci.yml (not yet implemented) - admin_build: allows to manage triggers, runners and variables - read_commit_status: allows to read a list of commit statuses (including the overall of builds) - create_commit_status: allows to create a new commit status using API Remove all extra methods to manage permission. Made all controllers to use explicitly the new permissions.
* Remove ci_ prefix from all ci related thingsKamil Trzcinski2015-12-111-1/+1
|
* Migrate CI::Project to ProjectKamil Trzcinski2015-12-111-0/+26