Fix the delete method.
This commit is contained in:
parent
aa76b79148
commit
f4a7c91afe
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Reference in New Issue