forked from ZwiiCMS-Team/ZwiiCMS
Bug user
This commit is contained in:
parent
68eb2cc061
commit
639fa7c85f
@ -263,12 +263,12 @@ class user extends common {
|
|||||||
$redirect = helper::baseUrl() . 'user/login/' . str_replace('/', '_', $this->getUrl());
|
$redirect = helper::baseUrl() . 'user/login/' . str_replace('/', '_', $this->getUrl());
|
||||||
}
|
}
|
||||||
// Redirection si retour en arrière possible
|
// Redirection si retour en arrière possible
|
||||||
elseif($this->getUrl(3)) {
|
elseif($this->getUser('group') === 3) {
|
||||||
$redirect = helper::baseUrl() . 'user';
|
$redirect = helper::baseUrl() . 'user';
|
||||||
}
|
}
|
||||||
// Redirection normale
|
// Redirection normale
|
||||||
else {
|
else {
|
||||||
$redirect = helper::baseUrl() . $this->getUrl();
|
$redirect = helper::baseUrl();
|
||||||
}
|
}
|
||||||
// Valeurs en sortie
|
// Valeurs en sortie
|
||||||
$this->addOutput([
|
$this->addOutput([
|
||||||
|
Loading…
Reference in New Issue
Block a user