Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
Merge "Fix access_disabled? function." into services-r9
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Liu authored and Gerrit Code Review committed Mar 2, 2012
2 parents ed0e99b + 22caaab commit 9e3e658
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mysql/lib/mysql_service/storage_quota.rb
Expand Up @@ -45,9 +45,7 @@ def access_disabled?(db)
rights = connection.query("SELECT insert_priv, create_priv, update_priv
FROM db WHERE Db=" + "'#{db}'")
rights.each do |right|
if right.include? 'Y' then
return false
end
return false if right.values.include? 'Y'
end
end
true
Expand Down

0 comments on commit 9e3e658

Please sign in to comment.