Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moodle-mod_pdfannotator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elc
moodle-mod_pdfannotator
Commits
a2ac0124
Unverified
Commit
a2ac0124
authored
5 years ago
by
fs959857
Committed by
Tim Schroeder
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add riskbitmask to capabilities
parent
7a7e96ad
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
db/access.php
+7
-1
7 additions, 1 deletion
db/access.php
version.php
+1
-1
1 addition, 1 deletion
version.php
with
8 additions
and
2 deletions
db/access.php
+
7
−
1
View file @
a2ac0124
...
@@ -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
(
...
...
This diff is collapsed.
Click to expand it.
version.php
+
1
−
1
View file @
a2ac0124
...
@@ -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
=
202003
1
600
;
// The current module version (Date: YYYYMMDDXX).
$plugin
->
version
=
202003
2
600
;
// 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.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment