summaryrefslogtreecommitdiff
path: root/lib/api/project_snippets.rb
Commit message (Collapse)AuthorAgeFilesLines
* 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