mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-28 04:30:08 +02:00
Fixed typos
This commit is contained in:
parent
63df16a369
commit
d04d743520
144 changed files with 263 additions and 265 deletions
|
@ -59,7 +59,7 @@ final class UserChecker implements UserCheckerInterface
|
|||
return;
|
||||
}
|
||||
|
||||
//Check if user is disabled. Then dont allow login
|
||||
//Check if user is disabled. Then don't allow login
|
||||
if ($user->isDisabled()) {
|
||||
//throw new DisabledException();
|
||||
throw new CustomUserMessageAccountStatusException($this->translator->trans('user.login_error.user_disabled', [], 'security'));
|
||||
|
|
|
@ -69,7 +69,7 @@ class StructureVoter extends ExtendedVoter
|
|||
}
|
||||
|
||||
/**
|
||||
* Maps a instance type to the permission name.
|
||||
* Maps an instance type to the permission name.
|
||||
*
|
||||
* @param object|string $subject The subject for which the permission name should be generated
|
||||
*
|
||||
|
|
|
@ -80,7 +80,7 @@ class UserVoter extends ExtendedVoter
|
|||
}
|
||||
}
|
||||
|
||||
//Else just check users permission:
|
||||
//Else just check user permission:
|
||||
if ($this->resolver->isValidOperation('users', $attribute)) {
|
||||
return $this->resolver->inherit($user, 'users', $attribute) ?? false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue