Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lms
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
5
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
lms
Merge requests
!19
Backport membership requests logic
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Backport membership requests logic
issue/lms-3467618:membership-requests
into
0.2.x
Overview
7
Commits
8
Pipelines
0
Changes
7
Closed
Marcin Grabias
requested to merge
issue/lms-3467618:membership-requests
into
0.2.x
4 months ago
Overview
7
Commits
8
Pipelines
0
Changes
7
Expand
👍
0
👎
0
Merge request reports
Compare
0.2.x
version 10
3a999552
4 months ago
version 9
63a98d98
4 months ago
version 8
0b536c39
4 months ago
version 7
fe66e54d
4 months ago
version 6
6a8db458
4 months ago
version 5
1bcaa48c
4 months ago
version 4
d6621612
4 months ago
version 3
3b01fed2
4 months ago
version 2
4c16117c
4 months ago
version 1
c90efc37
4 months ago
0.2.x (base)
and
latest version
latest version
42b51ca0
8 commits,
4 months ago
version 10
3a999552
7 commits,
4 months ago
version 9
63a98d98
7 commits,
4 months ago
version 8
0b536c39
6 commits,
4 months ago
version 7
fe66e54d
5 commits,
4 months ago
version 6
6a8db458
4 commits,
4 months ago
version 5
1bcaa48c
3 commits,
4 months ago
version 4
d6621612
2 commits,
4 months ago
version 3
3b01fed2
1 commit,
4 months ago
version 2
4c16117c
2 commits,
4 months ago
version 1
c90efc37
1 commit,
4 months ago
7 files
+
358
−
265
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
7
Search (e.g. *.vue) (Ctrl+P)
opigno_learning_path/src/Entity/Bundle/LearningPath.php
+
1
−
2
Options
@@ -36,10 +36,9 @@ class LearningPath extends Group {
* Checks if the given account is a member of any of the classes of this
* learning path.
*/
public
function
isClassMember
(
AccountInterface
$account
,
array
&
$cache_contexts
):
bool
{
public
function
isClassMember
(
AccountInterface
$account
,
array
&
$cache_contexts
=
[]
):
bool
{
$classes
=
$this
->
getClasses
();
$cache_contexts
=
[];
foreach
(
$classes
as
$class
)
{
if
(
$class
->
getMember
(
$account
)
!==
FALSE
)
{
// If the user is a member of one class, only this single class
Loading