My favorites | Sign in
Project Logo
                
New issue | Search
for
| Advanced search | Search tips
Issue 35: Project does not have read/write flags
1 person starred this issue and may be notified of changes. Back to list
Status:  Accepted
Owner:  adamtaunowilliams
Type-Defect
Priority-Medium


Sign in to add a comment
 
Reported by adamtaunowilliams, Jan 08, 2009
The Project entity does not supply access flags: read, write, delete.  It
should
Comment 1 by adamtaunowilliams, Jan 08, 2009
access flags are applied to company objects like:

  SkyAccessManager    *accessManager;

  flags = [NSMutableArray arrayWithCapacity:16];
  accessManager = [[self getCTX] accessManager];
  if([accessManager operation:@"w"
        allowedOnObjectIDs:[self _getEOsForPKeys:[_company objectForKey:@"companyId"]]
        forAccessGlobalID:[self _getGlobalId]])
    [flags addObject:@"WRITE"];
  else [flags addObject:@"READONLY"]

which gives us WRITE or READONLY flags.
Sign in to add a comment

Hosted by Google Code