projects
/
mailer.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixes/rewrites for missing sql_patches and check on admin's default access mode ...
[mailer.git]
/
inc
/
mysql-manager.php
diff --git
a/inc/mysql-manager.php
b/inc/mysql-manager.php
index 111c65c3ef6dc03a349dab1c1c1022da8fd74e0a..db3015241a05653e8326fa33ccd6c73562a577eb 100644
(file)
--- a/
inc/mysql-manager.php
+++ b/
inc/mysql-manager.php
@@
-1472,7
+1472,11
@@
function GET_ADMIN_DEFAULT_ACL ($aid) {
// By default an invalid ACL value is returned
$ret = "***";
// By default an invalid ACL value is returned
$ret = "***";
- if (isset($GLOBALS['cache_array']['admins']['def_acl'][$aid])) {
+ // Is sql_patches there and was it found in cache?
+ if (!EXT_IS_ACTIVE("sql_patches")) {
+ // Not found, which is bad, so we need to allow all
+ $ret = "allow";
+ } elseif (isset($GLOBALS['cache_array']['admins']['def_acl'][$aid])) {
// Use cache
$ret = $GLOBALS['cache_array']['admins']['def_acl'][$aid];
// Use cache
$ret = $GLOBALS['cache_array']['admins']['def_acl'][$aid];