svn_repos_authz_check_access

Function svn_repos_authz_check_access 

Source
pub unsafe extern "C" fn svn_repos_authz_check_access(
    authz: *mut svn_authz_t,
    repos_name: *const c_char,
    path: *const c_char,
    user: *const c_char,
    required_access: svn_repos_authz_access_t,
    access_granted: *mut svn_boolean_t,
    pool: *mut apr_pool_t,
) -> *mut svn_error_t
Expand description

Check whether @a user can access @a path in the repository @a repos_name with the @a required_access. @a authz lists the ACLs to check against. Set @a *access_granted to indicate if the requested access is granted.

If @a path is NULL, then check whether @a user has the @a required_access anywhere in the repository. Set @a *access_granted to TRUE if at least one path is accessible with the @a required_access.

For compatibility with 1.6, and earlier, @a repos_name can be NULL in which case it is equivalent to a @a repos_name of “”.

@note Presently, @a repos_name must byte-for-byte match the repos_name specified in the authz file; it is treated as an opaque string, and not as a dirent.

@since New in 1.3.