You are here

function forena_query_access_repository in Forena Reports 7.5

Same name and namespace in other branches
  1. 8 forena_query/forena_query.module \forena_query_access_repository()
  2. 7.3 forena_query.module \forena_query_access_repository()
  3. 7.4 forena_query.module \forena_query_access_repository()

Return permission as to whether the user can save data in the repository.

Parameters

$repos string:

File

./forena_query.module, line 130
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');
}