added plugin screen (#671)

This commit is contained in:
Kevin Papst
2019-04-08 18:38:56 +02:00
committed by GitHub
parent 5bea9915f5
commit 3a4aa5a001
68 changed files with 1392 additions and 490 deletions

View File

@@ -74,7 +74,7 @@ class UserVoter extends AbstractVoter
switch ($attribute) {
// special case for the UserController
case self::DELETE:
if (!$this->canDelete($subject, $user, $token)) {
if (!$this->canDelete($subject, $user)) {
return false;
}
@@ -114,7 +114,7 @@ class UserVoter extends AbstractVoter
* @param User $user
* @return bool
*/
protected function canDelete(User $profile, User $user, TokenInterface $token)
protected function canDelete(User $profile, User $user)
{
return $profile->getId() !== $user->getId();
}