fix for SQLForm database table permissions where the user is granted permission on all databases
This commit is contained in:
parent
7329f102bd
commit
c410bfd146
2 changed files with 5 additions and 2 deletions
|
|
@ -15,6 +15,8 @@
|
|||
- fix: Clear Login History period is calculated 24 times longer if it is set
|
||||
in months (thanks to Todor Kouyoumdjiev ECoCoMS Ltd.)
|
||||
http://www.plainblack.com/bugs/tracker/clear-login-history-period-is-calculated-24-times-longer-if-it-is-set-in-months#VomZpVCroSN6WoQ-UYo7Xw
|
||||
- fix: SQLForm - cannot add new asset (revisited) (thanks to Joek Hondius)
|
||||
http://www.plainblack.com/bugs/tracker/sqlform---cannot-add-new-asset-revisited#barqLwFe3LPODb4Mksc6ZA
|
||||
|
||||
7.3.13
|
||||
- fix: Stale pages after user login
|
||||
|
|
|
|||
|
|
@ -656,12 +656,13 @@ sub _databaseLinkHasPrivileges {
|
|||
@grants = $dbLink->db->buildArray('show grants for current_user');
|
||||
|
||||
foreach (@grants) {
|
||||
if (m/GRANT ([\w\s\d,]*?) ON .$databaseName.*$/) {
|
||||
##Checks for grants on all databases '*' or grants on a specific database
|
||||
if (m/GRANT ([\w\s\d,]*?) ON (?:\*|.$databaseName.)\./) {
|
||||
push(@privileges, (split(/, /,$1)));
|
||||
}
|
||||
}
|
||||
|
||||
# Check ik all required privs are present.
|
||||
# Check if all required privs are present.
|
||||
return 1 if (isIn('ALL PRIVILEGES', @privileges));
|
||||
|
||||
foreach (@$wantedPrivileges) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue