diff options
author | Bharat Mediratta <bharat@menalto.com> | 2008-12-03 19:09:56 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2008-12-03 19:09:56 +0000 |
commit | c3478675cd2ff6ccf1637975088868af6b3eeca7 (patch) | |
tree | 74cbf1139df1d93a7dd8b7f58d358edc4d1401ae | |
parent | 03bc3c281e5cb5adbaba44b195c6ecec09618b0f (diff) |
Fix a bug where we weren't actually deleting permissions (hooray for unit tests!)
-rw-r--r-- | core/helpers/access.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/helpers/access.php b/core/helpers/access.php index f6bc93c9..96f4d375 100644 --- a/core/helpers/access.php +++ b/core/helpers/access.php @@ -176,7 +176,7 @@ class access_Core { self::_drop_columns($name, $group->id); } self::_drop_columns($name, group::EVERYBODY); - ORM::factory("permission", $name)->delete(); + ORM::factory("permission")->where("name", $name)->find()->delete(); } /** |