]> git.andy128k.dev Git - ipf.git/commitdiff
fix permission detection query
authorAndrey Kutejko <andy128k@gmail.com>
Mon, 24 Oct 2016 18:37:47 +0000 (20:37 +0200)
committerAndrey Kutejko <andy128k@gmail.com>
Mon, 24 Oct 2016 18:37:47 +0000 (20:37 +0200)
ipf/auth/app.php

index 95c24d517168942cb69cadc62f7721257c853e05..6daf27547eb2e143c5f78286924256b3506ba496 100644 (file)
@@ -58,11 +58,13 @@ class IPF_Auth_App extends IPF_Application
 
     function arePermissionsEnabled()
     {
-        if ($this->permissionsEnabled === null)
+        if ($this->permissionsEnabled === null) {
             $this->permissionsEnabled = (bool)\PFF\Container::databaseQuery()
                 ->from('auth_permission')
+                ->select(null)
                 ->select('COUNT(1)')
                 ->fetchColumn();
+        }
         return $this->permissionsEnabled;
     }