| @@ -18,9 +18,9 @@ | ||
| 18 | 18 | if (PermissionManager::userCan(['manage_all_data', 'manage_other_availabilities'])) { |
| 19 | 19 | return true; |
| 20 | 20 | } |
| 21 | 21 | |
| 22 | - if ($request->method() == 'GET' && PermissionManager::userCan('read_and_use_other_availabilities')) { | |
| 22 | + if ($request->getMethod() == 'GET' && PermissionManager::userCan('read_and_use_other_availabilities')) { | |
| 23 | 23 | return true; |
| 24 | 24 | } |
| 25 | 25 | |
| 26 | 26 | // Resolve the schedule from the URL route only — request-body values |