PluginProbe
Fluent Booking – The Ultimate Appointments Scheduling, Events Booking, Events Calendar Solution / trunk
Fluent Booking – The Ultimate Appointments Scheduling, Events Booking, Events Calendar Solution vtrunk
2.4.0 2.3.0 2.2.5 2.2.0 2.1.2 2.1.1 trunk 1.10.0 1.10.01 1.10.02 1.5.0 1.5.01 1.5.02 1.5.1 1.5.10 1.5.20 1.5.21 1.5.22 1.5.23 1.5.24 1.5.25 1.6.0 1.7.0 1.7.1 1.7.2 All 33 releases
← All changes | app/Http/Controllers/AvailabilityController.php +4 -4 1.10.0trunk View file →
@@ -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