]> BookStack Code Mirror - bookstack/commit
Added check for last admin on role change
authorDan Brown <redacted>
Sun, 30 Dec 2018 16:11:58 +0000 (16:11 +0000)
committerDan Brown <redacted>
Sun, 30 Dec 2018 16:11:58 +0000 (16:11 +0000)
commit2317bf235003712bd3c47d07e8fdedab4ecbc039
tree5b28f25d6dcc3fd33c0c34c5f553eea708c46c3a
parent456afdcd4c9a724ad50b4bddbe4812ccccd9606a
Added check for last admin on role change

Will show error message if last admin and admin role is removed.
Closes #1124
Also cleaned up user controller a little.
app/Auth/UserRepo.php
app/Exceptions/NotifyException.php
app/Exceptions/UserUpdateException.php [new file with mode: 0644]
app/Http/Controllers/UserController.php
resources/lang/en/errors.php
tests/Permissions/RolesTest.php
Morty Proxy This is a proxified and sanitized view of the page, visit original site.