| @@ -26,9 +26,9 @@ | ||
| 26 | 26 | } else if ($host !== 'all') { |
| 27 | 27 | $host = (int)$host; |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | - if (!PermissionManager::userCan(['read_and_use_other_availabilities','manage_other_availabilities'])) { | |
| 30 | + if (!PermissionManager::userCan(['manage_all_data', 'read_and_use_other_availabilities', 'manage_other_availabilities'])) { | |
| 31 | 31 | $host = get_current_user_id(); |
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | if ($host && $host !== 'all') { |
| @@ -110,9 +110,9 @@ | ||
| 110 | 110 | $isTitleExist = AvailabilityService::isTitleAlreadyExist($data['title'], $userId); |
| 111 | 111 | |
| 112 | 112 | if ($isTitleExist) { |
| 113 | 113 | /* translators: %s is the existing availability title */ |
| 114 | - $message = sprintf(__('%s is already exist', 'fluent-booking'), $data['title']); | |
| 114 | + $message = sprintf(__('%s already exists', 'fluent-booking'), $data['title']); | |
| 115 | 115 | return $this->sendError([ |
| 116 | 116 | 'message' => $message, |
| 117 | 117 | ], 422); |
| 118 | 118 | } |
| @@ -206,9 +206,9 @@ | ||
| 206 | 206 | $isTitleExist = AvailabilityService::isTitleAlreadyExist($title, $schedule->object_id, $schedule->key); |
| 207 | 207 | |
| 208 | 208 | if ($isTitleExist) { |
| 209 | 209 | /* translators: %s is the existing availability title */ |
| 210 | - $message = sprintf(__('%s is already exist', 'fluent-booking'), $title); | |
| 210 | + $message = sprintf(__('%s already exists', 'fluent-booking'), $title); | |
| 211 | 211 | return $this->sendError([ |
| 212 | 212 | 'message' => $message, |
| 213 | 213 | ], 422); |
| 214 | 214 | } |
| @@ -256,9 +256,9 @@ | ||
| 256 | 256 | if ($isDefault) { |
| 257 | 257 | $calendar = Calendar::where('user_id', $schedule->object_id)->first(); |
| 258 | 258 | if ($calendar) { |
| 259 | 259 | return $this->sendError([ |
| 260 | - 'message' => __('Default Schedule can not be deleted', 'fluent-booking') | |
| 260 | + 'message' => __('Default Schedule cannot be deleted', 'fluent-booking') | |
| 261 | 261 | ], 422); |
| 262 | 262 | } |
| 263 | 263 | } |
| 264 | 264 | |