Skip to content

A free open source IT asset/license management system

Nicer comment formatting

snipeb88fde5dae62
diff --git a/app/Http/Controllers/Api/UsersController.php b/app/Http/Controllers/Api/UsersController.php
index 5f6e0ae74c..a7e49898c3 100644
--- a/app/Http/Controllers/Api/UsersController.php
+++ b/app/Http/Controllers/Api/UsersController.php
@@ -282,9 +282,15 @@ class UsersController extends Controller
$user = User::findOrFail($id);
- // This is a janky hack to prevent people from changing admin demo user data on the public demo.
- // The $ids 1 and 2 are special since they are seeded as superadmins in the demo seeder.
- // Thanks, jerks. You are why we can't have nice things. - snipe
+ /**
+ * This is a janky hack to prevent people from changing admin demo user data on the public demo.
+ *
+ * The $ids 1 and 2 are special since they are seeded as superadmins in the demo seeder.
+ *
+ * Thanks, jerks. You are why we can't have nice things. - snipe
+ *
+ */
+
if ((($id == 1) || ($id == 2)) && (config('app.lock_passwords'))) {
return response()->json(Helper::formatStandardApiResponse('error', null, 'Permission denied. You cannot update user information via API on the demo.'));