Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
OLAT CI-CD Testing Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lars Oliver Dam
OLAT CI-CD Testing Project
Commits
634e2bfb
Commit
634e2bfb
authored
5 years ago
by
srosse
Browse files
Options
Downloads
Patches
Plain Diff
OO-4064: fix curriculum owner query in user management
parent
5b663e09
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/org/olat/basesecurity/manager/IdentityPowerSearchQueriesImpl.java
+8
-1
8 additions, 1 deletion
.../basesecurity/manager/IdentityPowerSearchQueriesImpl.java
with
8 additions
and
1 deletion
src/main/java/org/olat/basesecurity/manager/IdentityPowerSearchQueriesImpl.java
+
8
−
1
View file @
634e2bfb
...
...
@@ -44,6 +44,7 @@ import org.olat.core.commons.persistence.SortKey;
import
org.olat.core.id.Identity
;
import
org.olat.core.id.OrganisationRef
;
import
org.olat.core.util.StringHelper
;
import
org.olat.modules.curriculum.CurriculumRoles
;
import
org.olat.repository.RepositoryEntryStatusEnum
;
import
org.olat.user.propertyhandlers.UserPropertyHandler
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -250,7 +251,13 @@ public class IdentityPowerSearchQueriesImpl implements IdentityPowerSearchQuerie
.
append
(
" )"
);
}
if
(
params
.
getCurriculumRole
()
!=
null
)
{
if
(
params
.
getCurriculumRole
()
==
CurriculumRoles
.
curriculumowner
)
{
needsAnd
=
checkAnd
(
sb
,
needsAnd
);
sb
.
append
(
" exists (select cur.key from curriculum as cur"
)
.
append
(
" inner join cur.group as cGroup"
)
.
append
(
" inner join cGroup.members as cmember"
)
.
append
(
" where cmember.identity.key=ident.key and cmember.role=:curriculumRole)"
);
}
else
if
(
params
.
getCurriculumRole
()
!=
null
)
{
needsAnd
=
checkAnd
(
sb
,
needsAnd
);
sb
.
append
(
" exists (select curEl.key from curriculumelement as curEl"
)
.
append
(
" inner join curEl.group as cGroup"
)
...
...
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