From 0114f8dc6af046d5c10305f6d5c2fbb32e3408de Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Thu, 26 Nov 2015 11:38:31 -0500 Subject: [PATCH] (fix) wrong check for viewable property --- UI/Scheduler/UIxCalListingActions.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/UI/Scheduler/UIxCalListingActions.m b/UI/Scheduler/UIxCalListingActions.m index 6157b42ec..7674f3a71 100644 --- a/UI/Scheduler/UIxCalListingActions.m +++ b/UI/Scheduler/UIxCalListingActions.m @@ -471,10 +471,10 @@ static NSArray *tasksFields = nil; role = [currentFolder roleForComponentsWithAccessClass: [[newInfo objectForKey: @"c_classification"] intValue] forUser : userLogin]; - if ([role isEqualToString: @"ComponentViewer"]) - [newInfo setObject: [NSNumber numberWithInt: 1] forKey: @"viewable"]; - else + if ([role isEqualToString: @"ComponentDAndTViewer"]) [newInfo setObject: [NSNumber numberWithInt: 0] forKey: @"viewable"]; + else + [newInfo setObject: [NSNumber numberWithInt: 1] forKey: @"viewable"]; } }