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
06c75a6f
Commit
06c75a6f
authored
7 years ago
by
srosse
Browse files
Options
Downloads
Patches
Plain Diff
OO-3222: check the setting of the course if the HTML page come from a shared folder
parent
f0fae59a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/org/olat/course/nodes/SPCourseNode.java
+1
-0
1 addition, 0 deletions
src/main/java/org/olat/course/nodes/SPCourseNode.java
src/main/java/org/olat/course/nodes/sp/SPRunController.java
+6
-0
6 additions, 0 deletions
src/main/java/org/olat/course/nodes/sp/SPRunController.java
with
7 additions
and
0 deletions
src/main/java/org/olat/course/nodes/SPCourseNode.java
+
1
−
0
View file @
06c75a6f
...
...
@@ -92,6 +92,7 @@ public class SPCourseNode extends AbstractAccessableCourseNode {
* org.olat.course.run.userview.UserCourseEnvironment,
* org.olat.course.run.userview.NodeEvaluation)
*/
@Override
public
NodeRunConstructionResult
createNodeRunConstructionResult
(
UserRequest
ureq
,
WindowControl
wControl
,
UserCourseEnvironment
userCourseEnv
,
NodeEvaluation
ne
,
String
nodecmd
)
{
updateModuleConfigDefaults
(
false
);
...
...
This diff is collapsed.
Click to expand it.
src/main/java/org/olat/course/nodes/sp/SPRunController.java
+
6
−
0
View file @
06c75a6f
...
...
@@ -136,6 +136,12 @@ public class SPRunController extends BasicController implements Activateable2 {
private
boolean
hasEditRights
(
UserRequest
ureq
)
{
if
(
userCourseEnv
.
isCourseReadOnly
())
return
false
;
if
(
fileName
!=
null
&&
fileName
.
startsWith
(
"/_sharedfolder"
))
{
if
(
userCourseEnv
.
getCourseEnvironment
().
getCourseConfig
().
isSharedFolderReadOnlyMount
())
{
return
false
;
}
}
if
(
isFileTypeEditable
(
fileName
))
{
Roles
roles
=
ureq
.
getUserSession
().
getRoles
();
if
(
roles
.
isOLATAdmin
())
{
...
...
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