Skip to content
Snippets Groups Projects
Commit c1f7f418 authored by srosse's avatar srosse
Browse files

OO-256: fix the add in catalog link in detail view for "Members only" courses

parent b5852a19
No related branches found
No related tags found
No related merge requests found
...@@ -462,7 +462,10 @@ public class RepositoryDetailsController extends BasicController implements Gene ...@@ -462,7 +462,10 @@ public class RepositoryDetailsController extends BasicController implements Gene
} }
} }
// update catalog link // update catalog link
detailsToolC.setEnabled(TOOL_CATALOG, (repositoryEntry.getAccess() >= RepositoryEntry.ACC_USERS) && !corrupted); boolean addCatalogEnabled = !corrupted &&
(repositoryEntry.getAccess() >= RepositoryEntry.ACC_USERS ||
repositoryEntry.isMembersOnly());
detailsToolC.setEnabled(TOOL_CATALOG, addCatalogEnabled);
} }
if (isNewController) { if (isNewController) {
if(isAuthor) { if(isAuthor) {
......
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