File tree 3 files changed +0
-24
lines changed 3 files changed +0
-24
lines changed Original file line number Diff line number Diff line change @@ -358,11 +358,6 @@ public function isSuperAdmin()
358
358
return $ this ->hasRole (static ::ROLE_SUPER_ADMIN );
359
359
}
360
360
361
- public function isUser (UserInterface $ user = null )
362
- {
363
- return null !== $ user && $ this ->getId () === $ user ->getId ();
364
- }
365
-
366
361
public function removeRole ($ role )
367
362
{
368
363
if (false !== $ key = array_search (strtoupper ($ role ), $ this ->roles , true )) {
Original file line number Diff line number Diff line change @@ -111,17 +111,6 @@ public function setPassword($password);
111
111
*/
112
112
public function isSuperAdmin ();
113
113
114
- /**
115
- * Tells if the the given user is this user.
116
- *
117
- * Useful when not hydrating all fields.
118
- *
119
- * @param null|UserInterface $user
120
- *
121
- * @return boolean
122
- */
123
- public function isUser (UserInterface $ user = null );
124
-
125
114
/**
126
115
* @param boolean $boolean
127
116
*
Original file line number Diff line number Diff line change @@ -218,14 +218,6 @@ public function isSuperAdmin()
218
218
return $ this ->hasRole (static ::ROLE_SUPER_ADMIN );
219
219
}
220
220
221
- /**
222
- * {@inheritDoc}
223
- */
224
- public function isUser (UserInterface $ user = null )
225
- {
226
- return null !== $ user && $ this ->getId () === $ user ->getId ();
227
- }
228
-
229
221
/**
230
222
* {@inheritDoc}
231
223
*/
You can’t perform that action at this time.
0 commit comments