Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TeachUOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Model registry
Analyze
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
Uni Osnabrück
Plugins
TeachUOS
Commits
cd1c3bc4
Commit
cd1c3bc4
authored
2 years ago
by
Marcus
Browse files
Options
Downloads
Patches
Plain Diff
Hide courseware tab in teachUOS course.
parent
92bcd1d0
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
TeachUOS.class.php
+10
-0
10 additions, 0 deletions
TeachUOS.class.php
with
10 additions
and
0 deletions
TeachUOS.class.php
+
10
−
0
View file @
cd1c3bc4
...
...
@@ -33,6 +33,16 @@ class TeachUOS extends StudipPlugin implements
);
$navigation
->
addSubNavigation
(
"teachUOS"
,
$teachUOS
);
}
// more setup if this plugin is active in this course
$contextId
=
\Context
::
getId
();
if
(
\Context
::
getType
()
===
\Context
::
COURSE
&&
$this
->
isActivated
(
$contextId
))
{
if
(
!
$GLOBALS
[
'perm'
]
->
have_studip_perm
(
'tutor'
,
$contextId
))
{
if
(
Navigation
::
hasItem
(
'/course/courseware'
))
{
Navigation
::
removeItem
(
'/course/courseware'
);
}
}
}
}
/**
...
...
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