Ignore:
Timestamp:
05/24/12 16:26:24 (12 years ago)
Author:
acoutinho
Message:

Ticket #2795 - Problema ao tentar aceitar convite da agenda para a conta compartilhada

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/prototype/modules/calendar/js/calendar.codecs.js

    r6286 r6295  
    656656                            }) 
    657657                        }; 
    658                         me.id = attend.id; 
     658                        me = attend; 
    659659                        return(null); 
    660660                    }; 
     
    685685                alarms: !!participantInfo.user ? participantInfo.user.alarms : [], 
    686686                status: !!participantInfo.user ? participantInfo.user.status : 1, 
    687                 acl: isShared ? constantAcl(Calendar.signatureOf[objEvent.calendar].permission.aclValues) : (!!participantInfo.user ? constantAcl(participantInfo.user.acl) : ( ( !objEvent.id || isAttendee ) ? constantAcl( 'rowi' ) : constantAcl( 'r' ))), 
     687                acl: constantAcl(me.acl || 'roiw'), 
    688688                isShared: isShared, 
    689689                isAttendee: (isAttendee ? true : (objEvent.id && isShared ? false : true)), 
    690                 me: ((!objEvent.id) || ( objEvent.id && isAttendee)) ? (!!participantInfo.user ? DataLayer.merge(participantInfo.user, me) : DataLayer.merge(isShared ? participantInfo.organizer :  me, { 
    691                     acl:  !isShared ? 'rowi' : Calendar.signatureOf[objEvent.calendar].permission.aclValues,  
    692                     delegatedFrom: 0,  
    693                     receiveNotification: 1 
    694                 })) : (DataLayer.merge( ( participantInfo.organizer || me), { 
    695                     acl: 'r' 
    696                 } ) ), 
     690                me: me, 
    697691                delegatedFrom: delegatedFrom, 
    698                                  
    699692                statusParticipants: statusParticipants 
    700693            }; 
Note: See TracChangeset for help on using the changeset viewer.