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