gitlab-org--gitlab-foss/spec/services
Stan Hu e23c803769
Add user deletion permission check in Users::DestroyService
We saw from a recent incident that the `Users::DestroyService` would
attempt to delete a user over and over. Revoking the permissions
from the current user did not help. We should ensure that the
current user does, in fact, have permissions to delete the user.

Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-02-20 17:19:11 +01:00
..
auth
boards Reuse endpoint to list issues for a list instead of create a new one 2017-02-03 17:02:44 +03:00
chat_names
ci Merge branch 'master' into fix/gb/pipeline-retry-builds-started 2017-02-17 14:31:00 +01:00
discussions
files Fix renaming 2017-01-07 00:31:11 +08:00
groups Fix a number of race conditions that can occur during namespace deletion 2017-02-15 23:56:40 -08:00
issuable Check if user can read issue before being assigned 2016-12-27 19:25:17 -02:00
issues fix issue creation from milestone doesn't assign the milestone 2017-02-12 09:02:03 +07:00
labels Abillity to promote project labels to group labels 2017-01-31 12:50:52 +01:00
members
merge_requests Merge branch 'master' into fix/gb/pipeline-retry-builds-started 2017-02-17 14:31:00 +01:00
milestones
notes Fix inconsistent naming for services that delete things 2017-02-08 09:16:43 +01:00
projects Prevent project team from being truncated too early during project destruction 2017-02-19 05:00:27 -08:00
protected_branches
search
slash_commands Adds /target_branch slash command functionality for merge requests 2017-02-03 13:01:43 +03:00
tags Move tag services to Tags namespace 2017-02-14 16:43:35 +01:00
users Add user deletion permission check in Users::DestroyService 2017-02-20 17:19:11 +01:00
wiki_pages Execute web hooks for WikiPage delete operation 2017-02-14 12:07:11 +05:30
access_token_validation_service_spec.rb
after_branch_delete_service_spec.rb
compare_service_spec.rb
create_deployment_service_spec.rb Prefer using project.add_developer in specs 2017-02-15 11:12:07 +01:00
create_release_service_spec.rb
create_snippet_service_spec.rb
delete_branch_service_spec.rb
delete_merged_branches_service_spec.rb
event_create_service_spec.rb Active tense test coverage 2017-02-01 22:45:41 +00:00
git_hooks_service_spec.rb We don't care about the return value now 2017-01-26 21:18:04 +08:00
git_push_service_spec.rb
git_tag_push_service_spec.rb
import_export_clean_up_service_spec.rb
notification_service_spec.rb Update NotificationService to respect User#notified_of_own_activity 2017-02-01 11:31:22 -08:00
pages_service_spec.rb Active tense test coverage in pages spec 2017-02-01 22:56:50 +00:00
repair_ldap_blocked_user_service_spec.rb
repository_archive_clean_up_service_spec.rb
search_service_spec.rb Add tests for nested groups in search service and search helper 2017-01-30 17:33:49 +02:00
spam_service_spec.rb Use reCaptcha when an issue identified as spam 2017-02-07 12:56:20 +01:00
system_hooks_service_spec.rb Add a system hook for when a project is updated. 2017-01-26 09:09:14 -05:00
system_note_service_spec.rb Disallow system notes for closed issuables 2017-02-06 15:44:54 -02:00
test_hook_service_spec.rb
todo_service_spec.rb Todo done clicking is kind of unusable. 2017-02-17 22:12:19 +01:00
update_release_service_spec.rb
update_snippet_service_spec.rb
user_project_access_changed_service_spec.rb Fix race conditions for AuthorizedProjectsWorker 2017-01-25 13:22:15 +01:00