| @@ 280-283 (lines=4) @@ | ||
| 277 | $smcFunc['db_free_result']($request); |
|
| 278 | ||
| 279 | // Make sure the user is allowed to edit this event. |
|
| 280 | if ($row['id_member'] != $user_info['id']) |
|
| 281 | isAllowedTo('calendar_edit_any'); |
|
| 282 | elseif (!allowedTo('calendar_edit_any')) |
|
| 283 | isAllowedTo('calendar_edit_own'); |
|
| 284 | ||
| 285 | $context['event']['month'] = $row['month']; |
|
| 286 | $context['event']['day'] = $row['day']; |
|
| @@ 335-338 (lines=4) @@ | ||
| 332 | } |
|
| 333 | ||
| 334 | // Make sure the user is allowed to edit this event. |
|
| 335 | if ($context['event']['member'] != $user_info['id']) |
|
| 336 | isAllowedTo('calendar_edit_any'); |
|
| 337 | elseif (!allowedTo('calendar_edit_any')) |
|
| 338 | isAllowedTo('calendar_edit_own'); |
|
| 339 | } |
|
| 340 | ||
| 341 | // Get list of boards that can be posted in. |
|