Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
integration
prechecker
Commits
0ea7278f
Commit
0ea7278f
authored
Dec 05, 2017
by
Andrew Nicols
Committed by
jun
Dec 06, 2017
Browse files
Merge branch 'MDL-60899-master' of
git://github.com/damyon/moodle
parents
a569a330
8b0801c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
blocks/lp/classes/output/summary.php
View file @
0ea7278f
...
...
@@ -35,6 +35,7 @@ use core_competency\url;
use
renderable
;
use
renderer_base
;
use
templatable
;
use
required_capability_exception
;
/**
* Summary renderable class.
...
...
@@ -68,7 +69,11 @@ class summary implements renderable, templatable {
$this
->
user
=
$user
;
// Get the plans.
$this
->
plans
=
api
::
list_user_plans
(
$this
->
user
->
id
);
try
{
$this
->
plans
=
api
::
list_user_plans
(
$this
->
user
->
id
);
}
catch
(
required_capability_exception
$e
)
{
$this
->
plans
=
[];
}
// Get the competencies to review.
$this
->
compstoreview
=
api
::
list_user_competencies_to_review
(
0
,
3
);
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment