public function getDatabasePermissionLevel($username, $databaseName)
    {
        $url      = UrlHelper::buildUrl(Urls::URL_USER, [$username, 'database', $databaseName]);
        $response = $this->getConnection()->get($url);

        $data = $response->getJson();

        return $data['result'];
    }
public function getDatabasePermissionLevel($username, $databaseName)
    {
        $url      = UrlHelper::buildUrl(Urls::URL_USER, [$username, 'database', $databaseName]);
        $response = $this->getConnection()->get($url);

        $data = $response->getJson();

        return $data['result'];
    }
public function getDatabasePermissionLevel ( $ username , $ databaseName ) { $ url = UrlHelper :: buildUrl ( Urls :: URL_USER , [ $ username , 'database' , $ databaseName ] ) ; $ response = $ this -> getConnection ( ) -> get ( $ url ) ; $ data = $ response -> getJson ( ) ; return $ data [ 'result' ] ; }
Gets the list of collections a user has access to

@param string $username     - username as a string
@param string $databaseName - name of the database

@return string
Gets the list of collections a user has access to