Commit graph

16 commits

Author SHA1 Message Date
GitLab Bot
36b0a5b875 Add latest changes from gitlab-org/gitlab@master 2020-07-21 18:09:45 +00:00
Agustin Henze
20093f9de0 Add new permission model read-pipeline-variable
Used to get the variables via the API endpoint
`/projects/:id/pipelines/:pipeline_id/variables`

Signed-off-by: Agustin Henze <tin@redhat.com>
2019-04-09 14:53:44 +00:00
Kamil Trzciński
d4c7214799
[master] Pipelines section is available to unauthorized users 2019-01-31 16:52:50 +01:00
Matija Čupić
0bc14b4522
Authorize DestroyPipelineService against pipeline 2018-11-13 17:24:10 +01:00
gfyoung
d5bf57a6af Enable frozen string in presenters and policies
Enable frozen string in:

* app/presenters
* app/policies

Partially addresses #47424.
2018-07-24 13:18:25 -07:00
Mark Chao
0d44f4d50e Rephrase "maintainer" to more precise "members who can merge to the target branch"
"Maintainer" will be freed to be used for #42751
2018-06-01 14:33:12 +09:00
Jan Provaznik
21588f180c Enable update_(build|pipeline) for maintainers 2018-05-15 08:18:22 +00:00
Stan Hu
ad37329553 Refactor common protected ref check 2017-12-12 15:07:24 -08:00
Lin Jen-Shin
1ed6d1541c Rename :user_cannot_update to :protected_ref 2017-07-18 22:13:57 +08:00
Lin Jen-Shin
679789ee93 Rename can_push_or_merge_to_branch? to can_update_branch?
Also make sure pipeline would also check against tag as well
2017-07-18 21:56:28 +08:00
Lin Jen-Shin
005870d5ce Fix bad conflict resolution 2017-07-04 16:02:30 +08:00
Lin Jen-Shin
39573c6dde Merge remote-tracking branch 'upstream/master' into 30634-protected-pipeline
* upstream/master: (119 commits)
  Speed up operations performed by gitlab-shell
  Change the force flag to a keyword argument
  add image - issue boards - moving card
  copyedit == ee !2296
  Reset @full_path to nil when cache expires
  Replace existing runner links with icons and tooltips, move into btn-group.
  add margin between captcha and register button
  Eagerly create a milestone that is used in a feature spec
  Adjust readme repo width
  Resolve "Issue Board -> "Remove from board" button when viewing an issue gives js error and fails"
  Set force_remove_source_branch default to false.
  Fix rubocop offenses
  Make entrypoint and command keys to be array of strings
  Add issuable-list class to shared mr/issue lists to fix new responsive layout
  New navigation breadcrumbs
  Restore timeago translations in renderTimeago.
  Fix curl example paths (missing the 'files' segment)
  Automatically hide sidebar on smaller screens
  Fix typo in IssuesFinder comment
  Make Project#ensure_repository force create a repo
  ...
2017-07-04 05:15:27 +08:00
Lin Jen-Shin
23bfd8c13c Consistently check permission for creating pipelines,
updating builds and updating pipelines. We check against
being able to merge or push if the ref is protected.
2017-07-04 05:01:05 +08:00
http://jneen.net/
37c401433b convert all the policies to DeclarativePolicy 2017-06-27 12:44:37 -07:00
Grzegorz Bizon
7fc6b5b6ff Do not inherit build policy in pipeline policy 2017-04-12 12:57:13 +02:00
Lin Jen-Shin
6061c9fa3d Send only to users have :read_build access, feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6342#note_17193335
2016-10-21 18:18:03 +08:00