mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
after doing a database restore, the permission may not yet exist (#6930)
This commit is contained in:
@@ -46,7 +46,7 @@ if (!class_exists('permissions')) {
|
||||
* @var string $permission
|
||||
*/
|
||||
public function delete($permission, $type) {
|
||||
if ($this->exists($permission)) {
|
||||
if ($this->exists($permission) && !empty($_SESSION["permissions"][$permission])) {
|
||||
if ($type === "temp") {
|
||||
if ($_SESSION["permissions"][$permission] === "temp") {
|
||||
unset($_SESSION["permissions"][$permission]);
|
||||
|
||||
Reference in New Issue
Block a user