src/Dev/Install/MySQLDatabaseConfigurationHelper.php
public function checkDatabasePermission($conn, $database, $permission)
    {
        $grants = $this->column($conn->query("SHOW GRANTS FOR CURRENT_USER"));
        foreach ($grants as $grant) {
            if ($this->checkDatabasePermissionGrant($database, $permission, $grant)) {
                return true;
            }
        }
        return false;
    }
public function checkDatabasePermission($conn, $database, $permission)
    {
        $grants = $this->column($conn->query("SHOW GRANTS FOR CURRENT_USER"));
        foreach ($grants as $grant) {
            if ($this->checkDatabasePermissionGrant($database, $permission, $grant)) {
                return true;
            }
        }
        return false;
    }
public function checkDatabasePermission ( $ conn , $ database , $ permission ) { $ grants = $ this -> column ( $ conn -> query ( "SHOW GRANTS FOR CURRENT_USER" ) ) ; foreach ( $ grants as $ grant ) { if ( $ this -> checkDatabasePermissionGrant ( $ database , $ permission , $ grant ) ) { return true ; } } return false ; }
Checks if the current user has the specified permission on the specified database

@param mixed $conn Connection object
@param string $database Database name
@param string $permission Permission to check
@return boolean
Checks if the current user has the specified permission on the specified database