Fix regression for subtask restriction
This commit is contained in:
@@ -25,7 +25,7 @@ class Subtask extends \Kanboard\Core\Base
|
|||||||
return trim($this->template->render('subtask/icons', array('subtask' => $subtask))) . $this->helper->e($subtask['title']);
|
return trim($this->template->render('subtask/icons', array('subtask' => $subtask))) . $this->helper->e($subtask['title']);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($subtask['status'] == 0 && isset($this->sessionStorage->hasSubtaskInProgress) && $this->sessionStorage->hasSubtaskInProgress === true) {
|
if ($subtask['status'] == 0 && isset($this->sessionStorage->hasSubtaskInProgress) && $this->sessionStorage->hasSubtaskInProgress) {
|
||||||
return $this->helper->url->link(
|
return $this->helper->url->link(
|
||||||
trim($this->template->render('subtask/icons', array('subtask' => $subtask))) . $this->helper->e($subtask['title']),
|
trim($this->template->render('subtask/icons', array('subtask' => $subtask))) . $this->helper->e($subtask['title']),
|
||||||
'subtask',
|
'subtask',
|
||||||
|
|||||||
@@ -57,8 +57,6 @@ class AuthSubscriber extends Base implements EventSubscriberInterface
|
|||||||
$this->userSession->validatePostAuthentication();
|
$this->userSession->validatePostAuthentication();
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->sessionStorage->hasSubtaskInProgress = $this->subtask->hasSubtaskInProgress($this->userSession->getId());
|
|
||||||
|
|
||||||
if (isset($this->sessionStorage->hasRememberMe) && $this->sessionStorage->hasRememberMe) {
|
if (isset($this->sessionStorage->hasRememberMe) && $this->sessionStorage->hasRememberMe) {
|
||||||
$session = $this->rememberMeSession->create($this->userSession->getId(), $ipAddress, $userAgent);
|
$session = $this->rememberMeSession->create($this->userSession->getId(), $ipAddress, $userAgent);
|
||||||
$this->rememberMeCookie->write($session['token'], $session['sequence'], $session['expiration']);
|
$this->rememberMeCookie->write($session['token'], $session['sequence'], $session['expiration']);
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ class BootstrapSubscriber extends \Kanboard\Core\Base implements EventSubscriber
|
|||||||
{
|
{
|
||||||
$this->config->setupTranslations();
|
$this->config->setupTranslations();
|
||||||
$this->config->setupTimezone();
|
$this->config->setupTimezone();
|
||||||
|
$this->sessionStorage->hasSubtaskInProgress = $this->subtask->hasSubtaskInProgress($this->userSession->getId());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function __destruct()
|
public function __destruct()
|
||||||
|
|||||||
Reference in New Issue
Block a user