From 28316bc53150e0f759ed6e0d53230fae3bff7085 Mon Sep 17 00:00:00 2001 From: Andrey Kutejko Date: Mon, 24 Oct 2016 20:37:47 +0200 Subject: [PATCH] fix permission detection query --- ipf/auth/app.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ipf/auth/app.php b/ipf/auth/app.php index 95c24d5..6daf275 100644 --- a/ipf/auth/app.php +++ b/ipf/auth/app.php @@ -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; } -- 2.49.0