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
d9a12617
Commit
d9a12617
authored
11 years ago
by
srosse
Browse files
Options
Downloads
Patches
Plain Diff
OO-700: show the toolbar of the catalog only if needed
parent
2de1e810
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/catalog/ui/CatalogController.java
+8
-15
8 additions, 15 deletions
src/main/java/org/olat/catalog/ui/CatalogController.java
with
8 additions
and
15 deletions
src/main/java/org/olat/catalog/ui/CatalogController.java
+
8
−
15
View file @
d9a12617
...
...
@@ -822,7 +822,9 @@ public class CatalogController extends BasicController implements Activateable2
listenTo
(
catalogToolC
);
//if (isOLATAdmin || isLocalTreeAdmin || isAuthor ) {
// at least a person being able to do something...
if
(!
isGuest
)
{
if
(
isGuest
)
{
return
null
;
}
else
{
// included normal user now for bookmark functionality
/*
* edit tools
...
...
@@ -863,7 +865,11 @@ public class CatalogController extends BasicController implements Activateable2
}
}
}
return
catalogToolC
;
if
(
canAdministrateCategory
||
canAddLinks
||
isOLATAdmin
||
isLocalTreeAdmin
||
isAuthor
)
{
return
catalogToolC
;
}
return
null
;
}
/**
...
...
@@ -1140,19 +1146,6 @@ public class CatalogController extends BasicController implements Activateable2
canAddSubCategories
=
isOLATAdmin
||
isLocalTreeAdmin
;
canRemoveAllLinks
=
isOLATAdmin
||
isLocalTreeAdmin
;
}
/**
* @see org.olat.core.gui.control.generic.dtabs.Activateable#activate(org.olat.core.gui.UserRequest, java.lang.String)
*//*
public void activate(UserRequest ureq, String viewIdentifier){
// transforms the parameter jumpToNode into a long value and calls jumpToNode(UserRequest, long)
try{
long parsed=Long.parseLong(viewIdentifier);
reloadHistoryStack(ureq, parsed);
} catch(Exception e){
logWarn("Could not activate catalog entry with ID::" + viewIdentifier, null);
}
}*/
/**
* Internal helper: Get's the requested catalog node and set it as active
...
...
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