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
b5852a19
Commit
b5852a19
authored
12 years ago
by
srosse
Browse files
Options
Downloads
Patches
Plain Diff
OO-303: fix red screen adding a file from project broker as e-portfolio artefact
parent
1f48767b
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/course/nodes/projectbroker/ProjectBrokerDropboxScoringViewController.java
+4
-6
4 additions, 6 deletions
...jectbroker/ProjectBrokerDropboxScoringViewController.java
with
4 additions
and
6 deletions
src/main/java/org/olat/course/nodes/projectbroker/ProjectBrokerDropboxScoringViewController.java
+
4
−
6
View file @
b5852a19
...
...
@@ -103,12 +103,8 @@ public class ProjectBrokerDropboxScoringViewController extends DropboxScoringVie
class
ReturnboxFullAccessCallback
implements
VFSSecurityCallback
{
private
Quota
quota
;
private
UserCourseEnvironment
userCourseEnv
;
private
CourseNode
courseNode
;
public
ReturnboxFullAccessCallback
(
String
relPath
,
UserCourseEnvironment
userCourseEnv
,
CourseNode
courseNode
)
{
this
.
userCourseEnv
=
userCourseEnv
;
this
.
courseNode
=
courseNode
;
public
ReturnboxFullAccessCallback
(
String
relPath
,
UserCourseEnvironment
userCourseEnv2
,
CourseNode
courseNode2
)
{
QuotaManager
qm
=
QuotaManager
.
getInstance
();
quota
=
qm
.
getCustomQuota
(
relPath
);
if
(
quota
==
null
)
{
// if no custom quota set, use the default quotas...
...
...
@@ -136,7 +132,9 @@ class ReturnboxFullAccessCallback implements VFSSecurityCallback {
/**
* @see org.olat.core.util.vfs.callbacks.VFSSecurityCallback#canCopy()
*/
public
boolean
canCopy
()
{
return
false
;
}
public
boolean
canCopy
()
{
return
true
;
//needed to make the file an e-portfolio artefact
}
/**
* @see org.olat.core.util.vfs.callbacks.VFSSecurityCallback#canDeleteRevisionsPermanently()
*/
...
...
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