Changeset 7958
- Timestamp:
- 03/05/13 14:35:40 (12 years ago)
- Location:
- branches/2.5/prototype
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.5/prototype/config/PostgreSQL.srv
r7731 r7958 7 7 ;host = 127.0.0.1 8 8 port = 5432 9 dbname = expresso10 user =postgres9 dbname= expressobranches25douglas 10 user=postgres 11 11 ; Caso o usuario tenha senha... 12 12 ;password= -
branches/2.5/prototype/config/calendarSignature.ini
r7938 r7958 14 14 deepnessFindCalendarSignature = modules/calendar/interceptors/DBMapping.php 15 15 createDefaultGroup = modules/calendar/interceptors/DBMapping.php 16 17 [before.read] 18 calendarSignatureSecurity = modules/calendar/interceptors/DBMapping.php 19 20 [before.find] 21 calendarSignatureSecurity = modules/calendar/interceptors/DBMapping.php 16 22 17 23 [after.read] -
branches/2.5/prototype/config/schedulable.ini
r7702 r7958 17 17 18 18 [before.find] 19 schedulableSecurity = modules/calendar/interceptors/DBMapping.php 19 20 findDeepnessOne = modules/calendar/interceptors/DBMapping.php 20 21 findSchedulable = modules/calendar/interceptors/DBMapping.php … … 34 35 createHistoric = modules/calendar/interceptors/DBMapping.php 35 36 37 [before.read] 38 schedulableSecurity = modules/calendar/interceptors/DBMapping.php 39 36 40 [after.read] 37 41 deepnessReadEvent = modules/calendar/interceptors/DBMapping.php … … 40 44 deleteSchedulable = modules/calendar/interceptors/DBMapping.php 41 45 deleteEvent = modules/calendar/interceptors/Notifications.php 46 42 47 43 48 [PostgreSQL.mapping] -
branches/2.5/prototype/modules/calendar/interceptors/DBMapping.php
r7747 r7958 164 164 165 165 public function encodeSignatureAlarmType(&$uri, &$params, &$criteria, $original) { 166 $params['type'] = self::codeAlarmType($params['type']); 166 $params['type'] = self::codeAlarmType($params['type']); 167 } 168 169 public function schedulableSecurity(&$uri, &$params, &$criteria, $original) 170 { 171 $security = 'schedulable.id = calendarToSchedulable.schedulable'; 172 $security .= ' AND calendar.id = calendarToSchedulable.calendar'; 173 $security .= ' AND calendar.id = calendarSignature.calendar'; 174 $security .= ' AND calendarSignature.user = ' . base64_encode(Config::me('uidNumber')); 175 176 $criteria['condition'] = $security; 177 } 178 179 public function calendarSecurity(&$uri, &$params, &$criteria, $original) 180 { 181 $security = 'calendar.id = calendarSignature.calendar'; 182 $security .= ' AND calendarSignature.user = ' . base64_encode(Config::me('uidNumber')); 183 184 $criteria['condition'] = $security; 185 } 186 187 public function calendarSignatureSecurity(&$uri, &$params, &$criteria, $original) 188 { 189 $security = 'calendarSignature.user = ' . base64_encode(Config::me('uidNumber')); 190 191 $criteria['condition'] = $security; 167 192 } 168 193
Note: See TracChangeset
for help on using the changeset viewer.