(fix) Calendars list in component editor

This commit is contained in:
Francis Lachapelle committed 2016-04-07 20:00:30 -04:00
1 parent 2115c46fbb
commit f9d2acded7
2 files changed
+8 -4

No files matched your search

+6 -4
View File
@@ -1247,12 +1247,14 @@ iRANGE(2);
sm = [SoSecurityManager sharedSecurityManager];
perm = SoPerm_DeleteObjects;
if ([sm validatePermission: perm
onObject: calendar
inContext: context])
{
if (![[self clientObject] isNew] &&
[sm validatePermission: perm
onObject: calendar
inContext: context])
{
// User can't delete components from this calendar;
// don't add any calendar other than the current one
// unless it's a new component
[calendarList addObject: calendar];
}
else