Commit cf051cc4 authored by Marina Glancy's avatar Marina Glancy
Browse files

Revert "MDL-41283 report_participation: Fixed legacy actions returned from api's"

This reverts commit 7b7bb92d.
parent 7ca6a3fa
......@@ -232,7 +232,7 @@ function book_scale_used_anywhere($scaleid) {
function book_get_view_actions() {
global $CFG; // necessary for includes
$return = array('view');
$return = array('view', 'view all');
$plugins = core_component::get_plugin_list('booktool');
foreach ($plugins as $plugin => $dir) {
......@@ -262,7 +262,7 @@ function book_get_view_actions() {
function book_get_post_actions() {
global $CFG; // necessary for includes
$return = array();
$return = array('update');
$plugins = core_component::get_plugin_list('booktool');
foreach ($plugins as $plugin => $dir) {
......
......@@ -1113,7 +1113,7 @@ function chat_print_error($level, $msg) {
* @return array
*/
function chat_get_view_actions() {
return array('view');
return array('view','view all','report');
}
/**
......
......@@ -667,7 +667,7 @@ function choice_get_choice($choiceid) {
* @return array
*/
function choice_get_view_actions() {
return array('view');
return array('view','view all','report');
}
/**
......
......@@ -582,7 +582,7 @@ function feedback_scale_used_anywhere($scaleid) {
* @return array
*/
function feedback_get_view_actions() {
return array('view');
return array('view', 'view all');
}
/**
......
......@@ -80,7 +80,7 @@ function folder_reset_userdata($data) {
* @return array
*/
function folder_get_view_actions() {
return array('view');
return array('view', 'view all');
}
/**
......@@ -94,7 +94,7 @@ function folder_get_view_actions() {
* @return array
*/
function folder_get_post_actions() {
return array();
return array('update', 'add');
}
/**
......
......@@ -2656,7 +2656,7 @@ function glossary_get_paging_bar($totalcount, $page, $perpage, $baseurl, $maxpag
* @return array
*/
function glossary_get_view_actions() {
return array('view','view entry');
return array('view','view all','view entry');
}
/**
......
......@@ -75,7 +75,7 @@ function imscp_reset_userdata($data) {
* @return array
*/
function imscp_get_view_actions() {
return array('view');
return array('view', 'view all');
}
/**
......@@ -89,7 +89,7 @@ function imscp_get_view_actions() {
* @return array
*/
function imscp_get_post_actions() {
return array();
return array('update', 'add');
}
/**
......
......@@ -537,7 +537,7 @@ function lesson_grade_item_delete($lesson) {
* @return array
*/
function lesson_get_view_actions() {
return array('view');
return array('view','view all');
}
/**
......
......@@ -73,7 +73,7 @@ function page_reset_userdata($data) {
* @return array
*/
function page_get_view_actions() {
return array('view');
return array('view','view all');
}
/**
......@@ -87,7 +87,7 @@ function page_get_view_actions() {
* @return array
*/
function page_get_post_actions() {
return array();
return array('update', 'add');
}
/**
......
......@@ -1282,7 +1282,7 @@ function quiz_update_events($quiz, $override = null) {
* @return array
*/
function quiz_get_view_actions() {
return array('view');
return array('view', 'view all', 'report', 'review');
}
/**
......
......@@ -73,7 +73,7 @@ function resource_reset_userdata($data) {
* @return array
*/
function resource_get_view_actions() {
return array('view');
return array('view','view all');
}
/**
......@@ -87,7 +87,7 @@ function resource_get_view_actions() {
* @return array
*/
function resource_get_post_actions() {
return array();
return array('update', 'add');
}
/**
......
......@@ -722,7 +722,7 @@ function scorm_grade_item_delete($scorm) {
* @return array
*/
function scorm_get_view_actions() {
return array('pre-view', 'view');
return array('pre-view', 'view', 'view all', 'report');
}
/**
......
......@@ -686,7 +686,7 @@ function survey_print_graph($url) {
* @return array
*/
function survey_get_view_actions() {
return array('download','view form');
return array('download','view all','view form','view graph','view report');
}
/**
......
......@@ -75,7 +75,7 @@ function url_reset_userdata($data) {
* @return array
*/
function url_get_view_actions() {
return array('view');
return array('view', 'view all');
}
/**
......@@ -89,7 +89,7 @@ function url_get_view_actions() {
* @return array
*/
function url_get_post_actions() {
return array();
return array('update', 'add');
}
/**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment