Changeset 27810 for branches/2.6/include/ws_functions
- Timestamp:
- Mar 17, 2014, 11:16:47 PM (10 years ago)
- Location:
- branches/2.6/include/ws_functions
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.6/include/ws_functions/pwg.groups.php
r26461 r27810 166 166 function ws_groups_setInfo($params, &$service) 167 167 { 168 if (get_pwg_token() != $params['pwg_token']) 169 { 170 return new PwgError(403, 'Invalid security token'); 171 } 172 168 173 $updates = array(); 169 174 … … 222 227 function ws_groups_addUser($params, &$service) 223 228 { 229 if (get_pwg_token() != $params['pwg_token']) 230 { 231 return new PwgError(403, 'Invalid security token'); 232 } 233 224 234 // does the group exist ? 225 235 $query = ' … … 265 275 function ws_groups_deleteUser($params, &$service) 266 276 { 277 if (get_pwg_token() != $params['pwg_token']) 278 { 279 return new PwgError(403, 'Invalid security token'); 280 } 281 267 282 // does the group exist ? 268 283 $query = ' -
branches/2.6/include/ws_functions/pwg.permissions.php
r26461 r27810 147 147 function ws_permissions_add($params, &$service) 148 148 { 149 if (get_pwg_token() != $params['pwg_token']) 150 { 151 return new PwgError(403, 'Invalid security token'); 152 } 153 149 154 include_once(PHPWG_ROOT_PATH.'admin/include/functions.php'); 150 155 … … 204 209 function ws_permissions_remove($params, &$service) 205 210 { 211 if (get_pwg_token() != $params['pwg_token']) 212 { 213 return new PwgError(403, 'Invalid security token'); 214 } 215 206 216 include_once(PHPWG_ROOT_PATH.'admin/include/functions.php'); 207 217 -
branches/2.6/include/ws_functions/pwg.users.php
r27715 r27810 276 276 function ws_users_add($params, &$service) 277 277 { 278 if (get_pwg_token() != $params['pwg_token']) 279 { 280 return new PwgError(403, 'Invalid security token'); 281 } 282 278 283 global $conf; 279 284 … … 364 369 function ws_users_setInfo($params, &$service) 365 370 { 371 if (get_pwg_token() != $params['pwg_token']) 372 { 373 return new PwgError(403, 'Invalid security token'); 374 } 375 366 376 global $conf, $user; 367 377
Note: See TracChangeset
for help on using the changeset viewer.