Skip to content
Snippets Groups Projects
Commit c24355e2 authored by User expired's avatar User expired
Browse files

openolat#73: for now only administrators are allowed to create repository...

openolat#73: for now only administrators are allowed to create repository entries for office documents
parent 7396db51
No related branches found
No related tags found
No related merge requests found
...@@ -75,7 +75,13 @@ public class DocumentEditorDelegate implements WebDocumentCreateDelegate, WebDoc ...@@ -75,7 +75,13 @@ public class DocumentEditorDelegate implements WebDocumentCreateDelegate, WebDoc
@Override @Override
public boolean supportCreate(Identity identity, Roles roles) { public boolean supportCreate(Identity identity, Roles roles) {
return canEdit(identity, roles); // UIBK for now only administrators are allowed to create repository entries for
// documents/tables/presentations until there is support for adding those entries to courses
if (roles.isAdministrator()) {
return canEdit(identity, roles);
} else {
return false;
}
} }
private boolean canEdit(Identity identity, Roles roles) { private boolean canEdit(Identity identity, Roles roles) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment