From 1363f263670ea075cb2f96df9d85571115daaf18 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 10 Jan 2013 15:59:02 +0100 Subject: [PATCH] Minor refactoring --- lib/core/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/common.py b/lib/core/common.py index 77b31ce42..87ec4d8e5 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -2978,7 +2978,7 @@ def isAdminFromPrivileges(privileges): # In Firebird there is no specific privilege that means # that the user is DBA # TODO: confirm - retVal |= (Backend.isDbms(DBMS.FIREBIRD) and "SELECT" in privileges and "INSERT" in privileges and "UPDATE" in privileges and "DELETE" in privileges and "REFERENCES" in privileges and "EXECUTE" in privileges) + retVal |= (Backend.isDbms(DBMS.FIREBIRD) and all(_ in privileges for _ in ("SELECT", "INSERT", "UPDATE", "DELETE", "REFERENCES", "EXECUTE"))) return retVal