From f6dedc0966e206978c24cb33e0325626473ea414 Mon Sep 17 00:00:00 2001 From: Stricted Date: Sun, 24 May 2015 16:05:58 +0200 Subject: [PATCH] fix last commit --- database.sql | 2 +- lib/system/SessionHandler.class.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/database.sql b/database.sql index 3ab267c..f755c51 100644 --- a/database.sql +++ b/database.sql @@ -86,7 +86,7 @@ CREATE TABLE IF NOT EXISTS dns_permissions ( CREATE TABLE IF NOT EXISTS dns_permissions_to_user ( id INT(10) NOT NULL AUTO_INCREMENT PRIMARY KEY, - userID INT(10) NOT NULL, + userID INT(10) NOT NULL, permissionID VARCHAR(255) NOT NULL, ) ENGINE=InnoDB; diff --git a/lib/system/SessionHandler.class.php b/lib/system/SessionHandler.class.php index e47ec11..53b314a 100644 --- a/lib/system/SessionHandler.class.php +++ b/lib/system/SessionHandler.class.php @@ -54,7 +54,6 @@ class SessionHandler { * @return boolean */ public function checkPermission($permission) { - /* get permissionID */ $sql = "SELECT * FROM dns_permissions where permission = ?"; $res = DNS::getDB()->query($sql, array($permission)); -- 2.20.1