You are here

function _course_access_services in Course 6

Access callback for course services.

2 string references to '_course_access_services'
_course_enrollment_resource in services/course_enrollment_resource.inc
@file course_enrollment_resource.inc Expose course enrollment as as service resource.
_course_report_resource in services/course_report_resource.inc
@file course_report_resource.inc Expose the course report as as service resource.

File

services/course_report_resource.inc, line 77
course_report_resource.inc Expose the course report as as service resource.

Code

function _course_access_services($resource, $op) {
  $access = user_access('access all course reports');
  if ($access) {
    return $access;
  }
  else {
    return services_error("No access to {$resource}.{$op}");
  }
}