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

Location:
trunk/prototype/modules/calendar
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/prototype/modules/calendar/constants.php

    r5879 r6295  
    3131define('ICAL_ACTION_ORGANIZER_UPDATE', 8); 
    3232define('ICAL_ACTION_ORGANIZER_NONE', 9); 
     33define('ICAL_ACTION_IMPORT_FROM_PERMISSION', 10); 
     34define('ICAL_ACTION_NONE_FROM_PERMISSION', 11); 
    3335 
    3436define('ATTENDEE_ACL_ORGANIZATION', 'o'); 
  • trunk/prototype/modules/calendar/interceptors/DBMapping.php

    r6286 r6295  
    819819        //Veirifica pois o usuário pode ter varias assinaturas mas não ser dona de nenhuma 
    820820        if (count($result) > 0) { 
    821             foreach ($result as $key) { 
    822                 if ($key['isOwner'] != 0) 
     821            foreach ($result as $value) { 
     822                if (isset($value['isOwner']) && $value['isOwner'] != 0) 
    823823                    $isValidSignature = true; 
    824824            } 
  • 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            }; 
  • trunk/prototype/modules/calendar/templates/attendee_add.ejs

    r6066 r6295  
    3939                <dd class="attendee-list"> 
    4040                        <ul class="attendee-list"> 
    41                                 <li class="organizer <%= (data.event.acl.organization || !data.event.isAttendee) ? "hidden" : "" %>">  
     41                                <li class="organizer <%= (data.event.acl.organization) ? "hidden" : "" %>">  
    4242                                        <div style="overflow:hidden; width:100%; display:table;"> 
    4343                                                <span class="space-status ui-icon <%=iconStatus[data.event.organizer.status]%>" title="<%=legendStatus[data.event.organizer.status]%>"></span> 
Note: See TracChangeset for help on using the changeset viewer.