remove debug lines in permissions (#2658)
because application defaults is now captured for output these debug lines show up when used. This removes them
This commit is contained in:
@@ -50,13 +50,11 @@ if (!class_exists('permissions')) {
|
|||||||
if ($this->exists($permission)) {
|
if ($this->exists($permission)) {
|
||||||
if ($type === "temp") {
|
if ($type === "temp") {
|
||||||
if ($_SESSION["permissions"][$permission] === "temp") {
|
if ($_SESSION["permissions"][$permission] === "temp") {
|
||||||
echo "delete ".__line__." $type\n";
|
|
||||||
unset($_SESSION["permissions"][$permission]);
|
unset($_SESSION["permissions"][$permission]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if ($_SESSION["permissions"][$permission] !== "temp") {
|
if ($_SESSION["permissions"][$permission] !== "temp") {
|
||||||
echo "delete ".__line__." $type\n";
|
|
||||||
unset($_SESSION["permissions"][$permission]);
|
unset($_SESSION["permissions"][$permission]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user