mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Modify the delete permission.
This commit is contained in:
@@ -51,14 +51,13 @@
|
|||||||
*/
|
*/
|
||||||
public function delete($permission) {
|
public function delete($permission) {
|
||||||
if (!$this->exists($permission)) {
|
if (!$this->exists($permission)) {
|
||||||
//$x = 0;
|
$x = 0;
|
||||||
foreach($_SESSION["permissions"] as &$row) {
|
foreach($_SESSION["permissions"] as $row) {
|
||||||
if ($row['permission_name'] == $permission) {
|
if ($row['permission_name'] == $permission) {
|
||||||
unset($row);
|
unset($_SESSION["permissions"][$x]);
|
||||||
//unset($_SESSION["permissions"][$x]);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
//$x++;
|
$x++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user