You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 26, 2022. It is now read-only.
@@ -161,7 +162,8 @@ public function addMacAddress(Request $request)
161
162
returnredirect()->back();
162
163
}
163
164
164
-
privatefunctionautoApproveMacAddresses($user) {
165
+
privatefunctionautoApproveMacAddresses($user)
166
+
{
165
167
DB::statement('UPDATE mac_addresses SET state = \'APPROVED\' WHERE user_id = ? ORDER BY FIELD(state,\'APPROVED\',\'REQUESTED\',\'REJECTED\'), updated_at DESC limit ?;', [$user->id, $user->internetAccess->auto_approved_mac_slots]);
166
168
}
167
169
@@ -181,6 +183,7 @@ public function translateStates(): \Closure
0 commit comments