Fix the delete method.

This commit is contained in:
Mark Crane 2015-04-29 07:30:58 +00:00
parent aa76b79148
commit f4a7c91afe
1 changed files with 1 additions and 1 deletions

View File

@ -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]);