Changeset 6295 for trunk/prototype/modules/calendar
- Timestamp:
- 05/24/12 16:26:24 (12 years ago)
- Location:
- trunk/prototype/modules/calendar
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/prototype/modules/calendar/constants.php
r5879 r6295 31 31 define('ICAL_ACTION_ORGANIZER_UPDATE', 8); 32 32 define('ICAL_ACTION_ORGANIZER_NONE', 9); 33 define('ICAL_ACTION_IMPORT_FROM_PERMISSION', 10); 34 define('ICAL_ACTION_NONE_FROM_PERMISSION', 11); 33 35 34 36 define('ATTENDEE_ACL_ORGANIZATION', 'o'); -
trunk/prototype/modules/calendar/interceptors/DBMapping.php
r6286 r6295 819 819 //Veirifica pois o usuário pode ter varias assinaturas mas não ser dona de nenhuma 820 820 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) 823 823 $isValidSignature = true; 824 824 } -
trunk/prototype/modules/calendar/js/calendar.codecs.js
r6286 r6295 656 656 }) 657 657 }; 658 me .id = attend.id;658 me = attend; 659 659 return(null); 660 660 }; … … 685 685 alarms: !!participantInfo.user ? participantInfo.user.alarms : [], 686 686 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'), 688 688 isShared: isShared, 689 689 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, 697 691 delegatedFrom: delegatedFrom, 698 699 692 statusParticipants: statusParticipants 700 693 }; -
trunk/prototype/modules/calendar/templates/attendee_add.ejs
r6066 r6295 39 39 <dd class="attendee-list"> 40 40 <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" : "" %>"> 42 42 <div style="overflow:hidden; width:100%; display:table;"> 43 43 <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.