LD_REST_Quiz_Statistics_Controller_V2::users_for_stats

LD_REST_Quiz_Statistics_Controller_V2::users_for_stats()

User IDs for fetching statistics.


Description #

  1. Admins have access to all statistics, thus null will be returned.
  2. Group leaders will have access to statistics of only those users which belong to their groups.
  3. Other logged in users will have access to only their stats.
  4. Logged out user cannot access stats.

Source #

File: includes/rest-api/v2/class-ld-rest-quiz-statistics-controller.php