Commit graph

10 commits

Author SHA1 Message Date
winh
0780fba337 Make admin user actions dropdown consistent 2017-08-17 13:57:41 +02:00
Nick Thomas
8ce26b3ab6 Allow users to be hard-removed from the admin users list page 2017-06-05 17:48:57 +01:00
Nick Thomas
05e98306e4 Allow admins to delete users from the admin users page 2017-06-01 16:30:06 +01:00
Jose Ivan Vargas Lopez
c2a987fb9c Admin section capitalization fix 2017-04-06 14:58:57 -05:00
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
Kushal Pandya
fb3e365412 HAMLLint: Fix SpaceInsideHashAttributes offences 2016-12-31 11:58:36 +05:30
Annabel Dunstone Gray
a219158e77 Remove admin.scss 2016-12-05 12:22:11 -06:00
Alfredo Sumaran
42a1dc5041 Remove unnecesary CSS class 2016-07-14 15:36:53 -05:00
Alfredo Sumaran
22191fcdd1 Rephrase deletion alert message 2016-07-07 13:25:58 -05:00
Alfredo Sumaran
338072cc4b Layout for Users Groups and Projects on admin area 2016-07-07 13:25:58 -05:00