BookStack/app/Auth/Access
Dan Brown 5f1ee5fb0e
Removed role 'name' field from database
The 'name' field was really redundant and caused confusion in the
codebase, since the 'Display' name is often used and we have a
'system_name' for the admin and public role.

This fixes #2032, Where external auth group matching has confusing
behaviour as matching was done against the display_name, if no
external_auth field is set, but only roles with a match 'name' field
would be considered.

This also fixes and error where the role users migration, on role
delete, would not actually fire due to mis-matching http body keys.
Looks like this has been an issue from the start. Added some testing to
cover. Fixes #2211.

Also converted phpdoc to typehints in many areas of the reviewed code
during the above.
2020-08-04 14:55:01 +01:00
..
Guards Fixed not shown existing-email warning on new ldap user 2020-04-26 12:13:00 +01:00
EmailConfirmationService.php Ran phpcbf and updated helpers typehinting 2019-09-15 18:29:51 +01:00
ExternalAuthService.php Removed role 'name' field from database 2020-08-04 14:55:01 +01:00
ExternalBaseUserProvider.php Started alignment of auth services 2020-02-01 11:42:22 +00:00
Ldap.php Added proper escaping to LDAP filter operations 2018-12-20 20:04:09 +00:00
LdapService.php Fixed side-effect in binary LDAP handling 2020-02-15 22:35:15 +00:00
RegistrationService.php Removed unused function in registration service 2020-05-02 01:07:30 +01:00
Saml2Service.php Checked over and aligned registration option behavior across all auth options 2020-02-02 17:31:00 +00:00
SocialAuthService.php Fixed 'interaction_required' response for azure 2020-02-12 15:03:55 +01:00
UserInviteService.php Ran phpcbf and updated helpers typehinting 2019-09-15 18:29:51 +01:00
UserTokenService.php Ran phpcbf and updated helpers typehinting 2019-09-15 18:29:51 +01:00