gitlab-org--gitlab-foss/app/services
Timothy Andrew 6fdb17cbbe
Don't allow deleting a ghost user.
- Add a `destroy_user` ability. This didn't exist before, and was implicit in
  other abilities (only admins could access the admin area, so only they could
  destroy all users; a user can only access their own account page, and so can
  destroy only themselves).

- Grant this ability to admins, and when the current user is trying to destroy
  themselves. Disallow destroying ghost users in all cases.

- Modify the `Users::DestroyService` to check this ability. Also check it in
  views to decide whether or not to show the "Delete User" button.

- Add a short summary of the Ghost User to the bio.
2017-02-24 16:50:20 +05:30
..
application_settings EE backport for new application settings service 2017-01-23 16:22:33 -02:00
auth Enable Style/MutableConstant 2017-02-23 09:31:56 -06:00
boards Revert "Enable Style/DotPosition" 2017-02-23 09:33:19 -06:00
chat_names Change last_used_at to use touch 2016-11-17 16:29:16 +01:00
ci Merge branch 'dm-meer-blauw-op-straat' into 'master' 2017-02-23 17:19:28 +00:00
commits Revert "Enable Style/DotPosition" 2017-02-23 09:33:19 -06:00
discussions Feature: delegate all open discussions to Issue 2016-12-05 20:55:45 +01:00
files Revert "Prefer leading style for Style/DotPosition" 2017-02-23 09:33:05 -06:00
groups Fix a number of race conditions that can occur during namespace deletion 2017-02-15 23:56:40 -08:00
issuable Add bulk update support for merge requests list 2016-09-08 11:52:20 +03:00
issues Revert "Enable Style/DotPosition" 2017-02-23 09:33:19 -06:00
labels Revert "Prefer leading style for Style/DotPosition" 2017-02-23 09:33:05 -06:00
members Enable Style/MutableConstant 2017-02-23 09:31:56 -06:00
merge_requests Revert "Enable Style/DotPosition" 2017-02-23 09:33:19 -06:00
milestones Ensure validation messages are shown within the milestone form 2016-09-19 09:29:12 +01:00
notes Revert "Prefer leading style for Style/DotPosition" 2017-02-23 09:33:05 -06:00
projects Enable Style/WordArray 2017-02-23 09:32:41 -06:00
protected_branches Enable Performance/RedundantMerge 2017-02-23 09:31:57 -06:00
search Improve search within group logic 2017-01-30 17:34:14 +02:00
slash_commands Adds /target_branch slash command functionality for merge requests 2017-02-03 13:01:43 +03:00
tags Revert "Prefer leading style for Style/DotPosition" 2017-02-23 09:33:05 -06:00
users Don't allow deleting a ghost user. 2017-02-24 16:50:20 +05:30
wiki_pages Execute web hooks for WikiPage delete operation 2017-02-14 12:07:11 +05:30
access_token_validation_service.rb Convert AccessTokenValidationService into a class. 2016-12-16 16:29:32 +05:30
after_branch_delete_service.rb Revert "Enable Style/DotPosition" 2017-02-23 09:33:19 -06:00
akismet_service.rb Reduce duplication in AkismetService 2016-09-20 08:19:32 +03:00
audit_event_service.rb
base_service.rb Enable Rails/Delegate 2017-02-23 09:32:42 -06:00
compare_service.rb Rename from base to start because base could mean merge base 2017-01-06 23:29:13 +08:00
create_branch_service.rb Revert "Enable Style/DotPosition" 2017-02-23 09:33:19 -06:00
create_deployment_service.rb Remove unnecessary require_relative calls from service classes 2016-11-22 11:25:00 +05:00
create_release_service.rb Remove unnecessary require_relative calls from service classes 2016-11-22 11:25:00 +05:00
create_snippet_service.rb Spam check and reCAPTCHA improvements 2017-02-21 13:32:49 -03:00
delete_branch_service.rb Remove unnecessary require_relative calls from service classes 2016-11-22 11:25:00 +05:00
delete_merged_branches_service.rb Remove unnecessary require_relative calls from service classes 2016-11-22 11:25:00 +05:00
event_create_service.rb Differentiate the expire from leave event 2016-10-20 00:26:45 +00:00
git_hooks_service.rb Make GitHooksService#execute return block value 2017-01-26 19:35:19 +08:00
git_operation_service.rb Try to check if branch diverged explicitly 2017-01-26 21:59:12 +08:00
git_push_service.rb Revert "Enable Style/DotPosition" 2017-02-23 09:33:19 -06:00
git_tag_push_service.rb Add more storage statistics 2016-12-21 16:39:49 +01:00
gravatar_service.rb
ham_service.rb Further refactor and syntax fixes. 2016-08-15 17:20:57 -05:00
import_export_clean_up_service.rb using shared path for project import uploads and refactored gitlab remove export worker 2016-08-04 12:51:55 +02:00
issuable_base_service.rb Revert "Prefer leading style for Style/DotPosition" 2017-02-23 09:33:05 -06:00
notification_service.rb Use a ghost boolean to track ghost users. 2017-02-24 16:50:20 +05:30
pages_service.rb Move most of PagesWorker logic UpdatePagesService 2017-01-31 22:53:57 +00:00
repair_ldap_blocked_user_service.rb
repository_archive_clean_up_service.rb using shared path for project import uploads and refactored gitlab remove export worker 2016-08-04 12:51:55 +02:00
spam_check_service.rb Spam check and reCAPTCHA improvements 2017-02-21 13:32:49 -03:00
spam_service.rb Spam check and reCAPTCHA improvements 2017-02-21 13:32:49 -03:00
system_hooks_service.rb Enable Performance/RedundantMerge 2017-02-23 09:31:57 -06:00
system_note_service.rb Enable Style/ClassCheck 2017-02-23 09:32:22 -06:00
test_hook_service.rb Simplify the name for data builder, feedback: 2016-08-12 16:09:29 +08:00
todo_service.rb Todo done clicking is kind of unusable. 2017-02-17 22:12:19 +01:00
update_release_service.rb Remove unnecessary require_relative calls from service classes 2016-11-22 11:25:00 +05:00
update_snippet_service.rb Spam check and reCAPTCHA improvements 2017-02-21 13:32:49 -03:00
user_agent_detail_service.rb Further refactor and syntax fixes. 2016-08-15 17:20:57 -05:00
user_project_access_changed_service.rb Fix race conditions for AuthorizedProjectsWorker 2017-01-25 13:22:15 +01:00
validate_new_branch_service.rb Add source_branch option for various git operations 2016-11-15 04:02:10 +08:00