summaryrefslogtreecommitdiff
path: root/app/policies
Commit message (Collapse)AuthorAgeFilesLines
* Enable Style/MultilineOperationIndentation in Rubocop, fixes #25741Rydkin Maxim2016-12-162-7/+7
|
* Backport hooks on group policies for the EE-specific implementationbackport/group-policiesDouglas Barbosa Alexandre2016-12-132-0/+12
|
* Merge branch 'features/api-snippets' into 'master' Sean McGivern2016-12-121-0/+5
|\ | | | | | | | | | | | | Adding support for personal snippet endpoint on the API Closes #22042 See merge request !6373
| * API: Endpoint to expose personal snippets as /snippetsGuyzmo2016-12-011-0/+5
| | | | | | | | | | | | | | | | | | | | Adding the necessary API for the new /snippets Restful resource added with this commit. Added a new Grape class `Snippets`, as well as a `PersonalSnippet` entity. Issue: #20042 Merge-Request: !6373 Signed-off-by: Guyzmo <guyzmo+gitlab+pub@m0g.net>
* | Update effected testszj-guest-reads-public-buildsZ.J. van de Weg2016-12-041-3/+0
| |
* | Guests can read builds if those are publicZ.J. van de Weg2016-12-042-0/+7
|/ | | | Fixes #18448
* Allow access to the wiki with git when repository feature disabledDouglas Barbosa Alexandre2016-11-301-0/+3
|
* Merge branch 'pipeline-notifications' into 'master' Sean McGivern2016-11-092-1/+5
|\ | | | | | | | | | | | | Integrate CI emails into notification system Closes #21930 See merge request !6342
| * Merge remote-tracking branch 'upstream/master' into pipeline-notificationsLin Jen-Shin2016-11-082-8/+3
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * upstream/master: (70 commits) Fix routing spec for group controller Add small improvements to constrainers and specs Faster search Fix broken commits search Changed helper method to check for none on params Moved if statements around in view API: Return 400 when creating a systemhook fails Update non-exist group spinach test to match routing Bump omniauth-gitlab to 1.0.2 to fix incompatibility with omniauth-oauth2 Replace trigger with the new ID of the docs project Refactor method name 17492 Update link color for more accessible contrast Fixed todos empty state when filtering Refactor namespace regex implements reset incoming email token on issues modal and account page, reactivates all tests and writes more tests for it Use separate email-friendly token for incoming email and let incoming email token be reset Use the Gitlab Workhorse HTTP header in the admin dashboard Refactor project routing Fix 404 when visit /projects page Rewritten spinach git_blame tests to rspec feature tests Add tests for project#index routing ...
| * \ Merge remote-tracking branch 'upstream/master' into pipeline-notificationsLin Jen-Shin2016-11-031-4/+8
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * upstream/master: (26 commits) Add a `--force` option to bin/changelog Update examples in changelog docs to use single quotes around title Use the server's base URL without relative URL part when creating links in JIRA Make ESLint ignore instrumented files for coverage analysis (!7236) Check that JavaScript file names match convention (!7238) Removed z-index for filters on issue boards GitLab 8.13 not 13 Replace MR Description Format links Fix gdb backtrace command Update gitlab.yml.example remove extra spaces from app/workers/post_receive.rb Add Rake task to create/repair GitLab Shell hooks symlinks Added guide for upgrading Postgres using Slony Ensure hook tokens are write-only in the API Add support for token attr in project hooks API Add a CHANGELOG entry Fix edit button wiki Updated Sortable JS plugin Allow owners to fetch source code in CI builds fixes milestone dropdown not select issue ...
| * | | Send only to users have :read_build access, feedback:Lin Jen-Shin2016-10-212-1/+5
| | | | | | | | | | | | | | | | https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6342#note_17193335
* | | | Merge branch 'issue_23548_dev' into 'master'Douwe Maan2016-11-091-0/+4
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | disable markdown in comments when referencing disabled features fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/23548 This MR prevents the following references when tool is disabled: - issues - snippets - commits - when repo is disabled - commit range - when repo is disabled - milestones This MR does not prevent references to repository files, since they are just markdown links and don't leak information. See merge request !2011 Signed-off-by: Rémy Coutable <remy@rymai.me>
* | | Process commits in a separate workerprocess-commits-using-sidekiqYorick Peterse2016-11-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This moves the code used for processing commits from GitPushService to its own Sidekiq worker: ProcessCommitWorker. Using a Sidekiq worker allows us to process multiple commits in parallel. This in turn will lead to issues being closed faster and cross references being created faster. Furthermore by isolating this code into a separate class it's easier to test and maintain the code. The new worker also ensures it can efficiently check which issues can be closed, without having to run numerous SQL queries for every issue.
* | | Added IssueCollectionYorick Peterse2016-11-072-8/+3
| |/ |/| | | | | | | | | This class can be used to reduce a list of issues down to a subset based on user permissions. This class operates in such a way that it can reduce issues using as few queries as possible, if any at all.
* | Allow owners to fetch source code in CI buildsallow-owner-to-run-ci-buildsKamil Trzcinski2016-11-011-4/+8
|/ | | | Due to different way of handling owners of a project, they were not allowed to fetch CI sources for project.
* Use delegate! on group and project labels policiesDouglas Barbosa Alexandre2016-10-192-2/+2
|
* Add ProjectLabel modelDouglas Barbosa Alexandre2016-10-191-3/+1
|
* Use policies to handle with global/project label permissionsDouglas Barbosa Alexandre2016-10-192-0/+12
|
* Add CRUD for Group LabelsDouglas Barbosa Alexandre2016-10-191-0/+1
|
* Add visibility level to project repositoryissue_19734_2Felipe Artur2016-10-171-2/+12
|
* Make guests unable to view MRsguests_cant_see_mrsValery Sizov2016-10-111-1/+2
|
* Improve project policy specAlejandro Rodríguez2016-10-061-6/+12
|
* Cycle analytics should be accessible to all for public projects.Timothy Andrew2016-09-201-1/+2
| | | | | - Public projects - anyone can access - Private projects - any member (guest level and above) can access
* Merge remote-tracking branch 'origin/master' into 21170-cycle-analyticsTimothy Andrew2016-09-201-4/+13
|\
| * Improve code commentsKamil Trzcinski2016-09-161-1/+1
| |
| * Use `build_read_container_image` and use `build_download_code`Kamil Trzcinski2016-09-151-8/+10
| |
| * Use a permissions of user to access all dependent projects from CI jobs ↵Kamil Trzcinski2016-09-131-4/+11
| | | | | | | | (this also includes a container images, and in future LFS files)
* | Add a JSON version of the `CycleAnalytics` page.Timothy Andrew2016-09-081-0/+1
|/
* Project tools visibility levelFelipe Artur2016-09-011-6/+6
|
* newline before default returnrefactor/add-policieshttp://jneen.net/2016-08-301-0/+1
|
* s/NB:/NOTE:/http://jneen.net/2016-08-302-2/+2
|
* implement RuleSet#size for testshttp://jneen.net/2016-08-301-0/+4
|
* line break after guard clausehttp://jneen.net/2016-08-301-0/+1
|
* use || in place of `or`http://jneen.net/2016-08-301-1/+1
|
* use a more compact style for access policieshttp://jneen.net/2016-08-301-11/+4
|
* move the rules method to the top #cosmetichttp://jneen.net/2016-08-301-27/+27
|
* factor out a RuleSet so that `delegate!` retains @cannothttp://jneen.net/2016-08-301-8/+50
|
* special-case blocked usershttp://jneen.net/2016-08-301-0/+1
|
* add Deployment, Environment, and ExternalIssue policieshttp://jneen.net/2016-08-303-0/+15
|
* use the cached abilities in #delegate!http://jneen.net/2016-08-301-1/+1
|
* port UserPolicyhttp://jneen.net/2016-08-301-0/+11
|
* port runners, namespaces, group/project_membershttp://jneen.net/2016-08-303-0/+42
|
* add personal snippets and project membershttp://jneen.net/2016-08-302-0/+38
|
* factor in global permissionshttp://jneen.net/2016-08-302-2/+9
|
* port groupshttp://jneen.net/2016-08-301-0/+45
|
* port notes and project snippetshttp://jneen.net/2016-08-302-0/+39
|
* add automatic detection of the policy classhttp://jneen.net/2016-08-301-1/+15
|
* port CommitStatus/Buildhttp://jneen.net/2016-08-303-0/+22
|
* add and use MergeRequestPolicyhttp://jneen.net/2016-08-301-0/+3
|
* port issues to Issu{able,e}Policyhttp://jneen.net/2016-08-304-2/+54
|