mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
#PHRAS-527 #time 3h
fix : in admin/users, applying a filter on "Applied user template" is ok
This commit is contained in:
@@ -103,13 +103,13 @@ class User_Query implements User_QueryInterface
|
||||
/**
|
||||
* Restrict user with the provided last model
|
||||
*
|
||||
* @param User|string|null $login
|
||||
* @param User|int|null $login
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function last_model_is($login = null)
|
||||
{
|
||||
$this->last_model = $login instanceof User ? $login->getLogin() : $login;
|
||||
$this->last_model = $login instanceof User ? $login->getId() : $login;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
Reference in New Issue
Block a user