summaryrefslogtreecommitdiff
path: root/lib/api/project_snippets.rb
Commit message (Collapse)AuthorAgeFilesLines
* Check public snippets for spamSean McGivern2017-02-021-1/+1
| | | | | | Apply the same spam checks to public snippets (either personal snippets that are public, or public snippets on public projects) as to issues on public projects.
* Use the pagination helper in the APIuse-pagination-helperRobert Schilling2016-12-041-1/+5
|
* Grapify the projects snippet APIgrapify-project-snippet-apiRobert Schilling2016-11-211-78/+78
|
* Prevent private snippets in public/internal projects from being leaked via APIStan Hu2016-04-251-5/+10
| | | | Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/15580
* Rename abilities to correspond contoller/model action namesrename-abilitiesDmitriy Zaporozhets2015-06-261-3/+3
| | | | | | | | | | | | | | | | | write_ was renamed to create_ modify_ was renamed to update_ So now in update action we have next code def create can?(current_user, :create_issue, @issue) end def update can?(current_user, :update_issue, @issue) end Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* More restricted visibility changesVinnie Okada2015-03-101-4/+4
| | | | Bug fixes and new tests for the restricted visibility changes.
* Enforce restricted visibilities for snippetsVinnie Okada2015-03-081-9/+13
| | | | | | Add new service classes to create and update project and personal snippets. These classes are responsible for enforcing restricted visibility settings for non-admin users.
* Improve error reporting on users APIjubianchi2014-09-161-2/+3
| | | | | | | | * users (#6878, #3526, #4209): Validation error messages are now exposed through 400 responses, 409 response are sent in case of duplicate email or username * MRs (#5335): 409 responses are sent in case of duplicate merge request (source/target branches), 422 responses are sent when submiting MR fo/from unrelated forks * issues * labels * projects
* Dropped expiration date from the snippet APIJeroen van Baarsen2014-01-111-4/+0
|
* Fix snippet raw content being escapedDmitriy Zaporozhets2013-06-061-0/+2
|
* Split Project api on several parts: deploy_keys, hooks, snippets etcDmitriy Zaporozhets2013-06-061-0/+121