mirror of
https://github.com/friendica/friendica
synced 2025-04-24 05:10:11 +00:00
Move "submanage" Session value into own methods
This commit is contained in:
parent
cafb23f8f0
commit
44a9683008
8 changed files with 37 additions and 11 deletions
|
@ -118,4 +118,16 @@ class UserSession implements IHandleUserSessions
|
|||
{
|
||||
$this->session->set('remote', Contact::getVisitorByUrl($this->session->get('my_url')));
|
||||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
public function getSubManagedUserId()
|
||||
{
|
||||
return $this->session->get('submanage') ?? false;
|
||||
}
|
||||
|
||||
/** {@inheritDoc} */
|
||||
public function setSubManagedUserId(int $managed_uid): void
|
||||
{
|
||||
$this->session->set('submanage', $managed_uid);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue