mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 17:13:49 +00:00
Fix the delete method.
This commit is contained in:
@@ -50,7 +50,7 @@
|
||||
* @var string $permission
|
||||
*/
|
||||
public function delete($permission) {
|
||||
if (!$this->exists($permission)) {
|
||||
if ($this->exists($permission)) {
|
||||
foreach($_SESSION["permissions"] as $key => $row) {
|
||||
if ($row['permission_name'] == $permission) {
|
||||
unset($_SESSION["permissions"][$key]);
|
||||
|
||||
Reference in New Issue
Block a user