Skip to content
Snippets Groups Projects
Unverified Commit a2ac0124 authored by fs959857's avatar fs959857 Committed by Tim Schroeder
Browse files

Add riskbitmask to capabilities

parent 7a7e96ad
Branches
Tags
No related merge requests found
...@@ -58,6 +58,7 @@ $capabilities = array( ...@@ -58,6 +58,7 @@ $capabilities = array(
), ),
'mod/pdfannotator:create' => array ( // Create annotation or comment. 'mod/pdfannotator:create' => array ( // Create annotation or comment.
'riskbitmask' => RISK_SPAM,
'captype' => 'write', 'captype' => 'write',
'contextlevel' => CONTEXT_MODULE, 'contextlevel' => CONTEXT_MODULE,
'archetypes' => array( 'archetypes' => array(
...@@ -80,6 +81,7 @@ $capabilities = array( ...@@ -80,6 +81,7 @@ $capabilities = array(
), ),
'mod/pdfannotator:deleteany' => array ( // Delete all comments or annotations (including comments/annotations by other users). 'mod/pdfannotator:deleteany' => array ( // Delete all comments or annotations (including comments/annotations by other users).
'riskbitmask' => RISK_DATALOSS,
'captype' => 'write', 'captype' => 'write',
'contextlevel' => CONTEXT_MODULE, 'contextlevel' => CONTEXT_MODULE,
'archetypes' => array( 'archetypes' => array(
...@@ -110,6 +112,7 @@ $capabilities = array( ...@@ -110,6 +112,7 @@ $capabilities = array(
), ),
'mod/pdfannotator:edit' => array ( // Update/Edit own annotations or comments. 'mod/pdfannotator:edit' => array ( // Update/Edit own annotations or comments.
'riskbitmask' => RISK_SPAM,
'captype' => 'write', 'captype' => 'write',
'contextlevel' => CONTEXT_MODULE, 'contextlevel' => CONTEXT_MODULE,
'archetypes' => array( 'archetypes' => array(
...@@ -132,6 +135,7 @@ $capabilities = array( ...@@ -132,6 +135,7 @@ $capabilities = array(
), ),
'mod/pdfannotator:report' => array ( // Report comments. 'mod/pdfannotator:report' => array ( // Report comments.
'riskbitmask' => RISK_SPAM,
'captype' => 'write', 'captype' => 'write',
'contextlevel' => CONTEXT_MODULE, 'contextlevel' => CONTEXT_MODULE,
'archetypes' => array( 'archetypes' => array(
...@@ -186,7 +190,6 @@ $capabilities = array( ...@@ -186,7 +190,6 @@ $capabilities = array(
), ),
'mod/pdfannotator:markcorrectanswer' => array( // Mark answers as correct. 'mod/pdfannotator:markcorrectanswer' => array( // Mark answers as correct.
'riskbitmask' => RISK_SPAM,
'captype' => 'write', 'captype' => 'write',
'contextlevel' => CONTEXT_MODULE, 'contextlevel' => CONTEXT_MODULE,
'archetypes' => array( 'archetypes' => array(
...@@ -197,6 +200,7 @@ $capabilities = array( ...@@ -197,6 +200,7 @@ $capabilities = array(
), ),
'mod/pdfannotator:usetextbox' => array ( // Always use textbox (even if using textbox (for students) is disabled in settings). 'mod/pdfannotator:usetextbox' => array ( // Always use textbox (even if using textbox (for students) is disabled in settings).
'riskbitmask' => RISK_SPAM,
'captype' => 'write', 'captype' => 'write',
'contextlevel' => CONTEXT_MODULE, 'contextlevel' => CONTEXT_MODULE,
'archetypes' => array( 'archetypes' => array(
...@@ -207,6 +211,7 @@ $capabilities = array( ...@@ -207,6 +211,7 @@ $capabilities = array(
), ),
'mod/pdfannotator:usedrawing' => array ( // Always use drawing (even if using textbox (for students) is disabled in settings). 'mod/pdfannotator:usedrawing' => array ( // Always use drawing (even if using textbox (for students) is disabled in settings).
'riskbitmask' => RISK_SPAM,
'captype' => 'write', 'captype' => 'write',
'contextlevel' => CONTEXT_MODULE, 'contextlevel' => CONTEXT_MODULE,
'archetypes' => array( 'archetypes' => array(
...@@ -237,6 +242,7 @@ $capabilities = array( ...@@ -237,6 +242,7 @@ $capabilities = array(
), ),
'mod/pdfannotator:forwardquestions' => array ( // Forward a question (to an other teacher/manager). 'mod/pdfannotator:forwardquestions' => array ( // Forward a question (to an other teacher/manager).
'riskbitmask' => RISK_SPAM,
'captype' => 'write', 'captype' => 'write',
'contextlevel' => CONTEXT_MODULE, 'contextlevel' => CONTEXT_MODULE,
'archetypes' => array( 'archetypes' => array(
......
...@@ -25,6 +25,6 @@ ...@@ -25,6 +25,6 @@
defined('MOODLE_INTERNAL') || die(); defined('MOODLE_INTERNAL') || die();
$plugin->component = 'mod_pdfannotator'; // Full name of the plugin (used for diagnostics). $plugin->component = 'mod_pdfannotator'; // Full name of the plugin (used for diagnostics).
$plugin->version = 2020031600; // The current module version (Date: YYYYMMDDXX). $plugin->version = 2020032600; // The current module version (Date: YYYYMMDDXX).
$plugin->release = 'PDF Annotator v1.3 release 2'; $plugin->release = 'PDF Annotator v1.3 release 2';
$plugin->requires = 2016112900; // Requires this Moodle version. $plugin->requires = 2016112900; // Requires this Moodle version.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment