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

Merge OpenOLAt 11.5 to OpenOLAT default branch with 3f6e54037821f088288e704d27c6ecd65462c810

parents 856c9e4f cea40230
No related branches found
No related tags found
No related merge requests found
......@@ -440,7 +440,7 @@ public class CourseRuntimeController extends RepositoryEntryRuntimeController im
tools.setI18nKey("header.tools");
tools.setElementCssClass("o_sel_course_tools");
if (reSecurity.isEntryAdmin() || hasCourseRight(CourseRights.RIGHT_COURSEEDITOR)) {
if (uce != null && (reSecurity.isEntryAdmin() || hasCourseRight(CourseRights.RIGHT_COURSEEDITOR))) {
boolean managed = RepositoryEntryManagedFlag.isManaged(getRepositoryEntry(), RepositoryEntryManagedFlag.editcontent);
boolean readOnly = uce.isCourseReadOnly();
editLink = LinkFactory.createToolLink("edit.cmd", translate("command.openeditor"), this, "o_icon_courseeditor");
......
......@@ -69,7 +69,7 @@ public abstract class FeedNotificationsHandler implements NotificationsHandler {
@Override
public SubscriptionInfo createSubscriptionInfo(Subscriber subscriber, Locale locale, Date compareDate) {
SubscriptionInfo si = null;
SubscriptionInfo si;
Publisher p = subscriber.getPublisher();
Date latestNews = p.getLatestNewsDate();
......@@ -104,7 +104,10 @@ public abstract class FeedNotificationsHandler implements NotificationsHandler {
}
}
si = new SubscriptionInfo(subscriber.getKey(), p.getType(), new TitleItem(title, getCssClassIcon()), items);
}
} else {
//no news
si = notificationsManager.getNoSubscriptionInfo();
}
} catch (Exception e) {
log.error("Unknown Exception", e);
si = notificationsManager.getNoSubscriptionInfo();
......
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