summaryrefslogtreecommitdiff
path: root/spec/controllers/admin
Commit message (Collapse)AuthorAgeFilesLines
* Allow admins to stop impersonating users without e-mail addressesOren Kanner2016-11-171-7/+21
| | | | | | | | Resolves #24576 Modify the guard clause of the `ApplicationController#require_email` before action to skip requests where an admin is impersonating the current user.
* Only show one error message for an invalid emailSteve Halasz2016-10-271-0/+11
| | | | | | | If notification_email is blank, it's set from email. If an admin attempted to create a user with an invalid email, an error would be displayed for both fields. Only validate the notification_email if it's different from email.
* Fix incorrect "stopped impersonation" log messagefix-impersonation-logStan Hu2016-08-231-0/+2
| | | | Closes #21015
* Merge branch 'akismet-submittable' into 'master' Robert Speicher2016-08-151-0/+12
|\ | | | | | | | | | | | | Submit to Akismet Part 1 (Issues) Related to #5932 #5573 gitlab-com/infrastructure#14 See merge request !5538
| * Further refactor and syntax fixes.Patricio Cano2016-08-151-1/+1
| |
| * Refactored AkismetHelper into AkismetService and cleaned up `Spammable`Patricio Cano2016-08-151-1/+1
| | | | | | | | - Refactored SpamCheckService into SpamService
| * Allow `Issue` to be submitted as spamPatricio Cano2016-08-151-0/+12
| | | | | | | | | | - Added controller actions as reusable concerns - Added controller tests
* | This fixes a long running tests due to changed Sidekiq statefix-failing-testsKamil Trzcinski2016-08-151-2/+3
|/
* Fix bug where destroying a namespace would not always destroy projectsStan Hu2016-08-111-0/+24
| | | | | | | | | | | | | | | | | | | There is a race condition in DestroyGroupService now that projects are deleted asynchronously: 1. User attempts to delete group 2. DestroyGroupService iterates through all projects and schedules a Sidekiq job to delete each Project 3. DestroyGroupService destroys the Group, leaving all its projects without a namespace 4. Projects::DestroyService runs later but the can?(current_user, :remove_project) is `false` because the user no longer has permission to destroy projects with no namespace. 5. This leaves the project in pending_delete state with no namespace/group. Projects without a namespace or group also adds another problem: it's not possible to destroy the container registry tags, since container_registry_path_with_namespace is the wrong value. The fix is to destroy the group asynchronously and to run execute directly on Projects::DestroyService. Closes #17893
* fixes part1 of files to start using active tensetiagonbotelho2016-08-091-1/+1
|
* Layout for Users Groups and Projects on admin areaAlfredo Sumaran2016-07-071-2/+2
|
* Use HTTP matchers if possibleZ.J. van de Weg2016-06-273-7/+7
|
* Enable RSpec/NotToNot cop and auto-correct offensesrs-rubocop-nottonotRobert Speicher2016-05-241-1/+1
| | | | Also removes the note from the development/testing.md guide
* Force password change after admin reset13691-allow-admin-to-reset-user-password-and-force-password-reset-on-next-loginSean McGivern2016-05-161-0/+76
| | | | | | When an admin changes a user's password for them, force the user to reset the password after logging in by expiring the new password immediately.
* Fix typoDouwe Maan2016-04-221-1/+1
|
* Fix issue with impersonationDouwe Maan2016-04-223-20/+143
|
* Fixes #14638.PotHix2016-04-061-0/+23
| | | | The SQL query was ambiguous and in this case we want to filter projects.
* Minor clean up on admin/users_controller_specZeger-Jan van de Weg2016-03-311-12/+3
|
* Fix rubocop offensesDouglas Barbosa Alexandre2016-02-021-4/+1
|
* Refactor Admin::SpamLogsController to block user before destroyingDouglas Barbosa Alexandre2016-02-021-21/+14
|
* Support Akismet spam checking for creation of issues via APIStan Hu2016-02-021-0/+47
| | | | | | | Currently any spam detected by Akismet by non-members via API will be logged in a separate table in the admin page. Closes #5612
* Repair ldap_blocked state when no ldap identity exist anymoreGabriel Mazetto2016-01-081-0/+26
|
* Prevent ldap_blocked users from being unblocked by the Admin UIGabriel Mazetto2016-01-081-9/+26
|
* Prevent impersonation if blockedAndrew Tomaka2015-12-021-0/+19
|
* refactor login as to be impersonation with better login/logoutJames Newton2015-10-291-15/+0
| | | | | | Modifies the existing "login as" feature to be called impersonation, as well as keeping track of who is impersonating to revert back to that user without having to log out.
* Redirect to a default path if HTTP_REFERER is not setStan Hu2015-10-201-0/+26
| | | | | | | | | | Safari 9.0 does not yet honor the HTML5 `origin-when-cross-origin` mode, and it's possible load balancers/proxies strip the HTTP_REFERER from the request header. In these cases, default to some default path. Closes #3122 Closes https://github.com/gitlabhq/gitlabhq/issues/9731
* Move login button to user page, switched to POST methodPavel Forkert2015-09-241-3/+3
|
* Add option to admin area to sign in as a specific userPavel Forkert2015-09-241-0/+15
| | | | Closes #2291
* Add "Confirm user" button in user admin pageStan Hu2015-08-051-0/+14
| | | | | Closes #2116 Closes https://github.com/gitlabhq/gitlabhq/issues/9502
* Add disable_two_factor route for Admin::UsersRobert Speicher2015-07-101-0/+28
|
* Add support for unlocking users in admin settingsStan Hu2015-07-021-0/+15
| | | | Closes https://github.com/gitlabhq/gitlabhq/issues/9381
* Fix error when deleting a user who has projectsStan Hu2015-06-231-0/+24
Closes #1856 Closes https://github.com/gitlabhq/gitlabhq/issues/9394