function forena_query_access_repository in Forena Reports 7.4
Same name and namespace in other branches
- 8 forena_query/forena_query.module \forena_query_access_repository()
- 7.5 forena_query.module \forena_query_access_repository()
- 7.3 forena_query.module \forena_query_access_repository()
Return permission as to whether the user can save data in the repository.
Parameters
string $repos: Name of repository to check.
Return value
bool True implies user has access to data provided by the connection.
File
- ./
forena_query.module, line 139 - Provides the ability to create saved queries and to test sql data blocks.
Code
function forena_query_access_repository($repos) {
@(list($repos, $block) = @explode('/', $repos, 2));
return user_access('create ' . $repos . ' blocks');
}