Files
Siro/backend
Hamza-AyedandClaude Opus 5 db4ca7dd7a Fix dashbord.php parse error; require super_admin on pricing and crypto tools
Hotfix: a comment added to the dashboard SQL contained double quotes inside
the double-quoted PHP string, terminating it and making dashbord.php fail to
parse. Production was returning a parse error for every dashboard request.

Authorisation gaps closed — connect.php only proves a token is valid, it does
not check what the caller is allowed to do:

- Admin/ggg.php decrypts any database field and was authorised solely by an
  admin phone number sent in the request body. Anyone who knew a listed
  number could decrypt platform data without signing in. It now runs behind
  connect.php, requires super_admin, keeps the phone list as a second factor,
  and records every use.
- ride/kazan/update.php, kazan/add.php and ride/promo/{add,update,delete}.php
  changed live pricing and discount codes with no role check at all, so any
  valid token — including a driver's or passenger's — could rewrite the fare
  table. All now require super_admin.

Staff/pending.php: adminUser has no `status` column in this deployment, so
the query failed with an opaque "unavailable". It now checks for the column
and reports the actual reason.

Console: Kazan tariff editor for super admins — sends only changed fields,
shows an old → new confirmation before saving, and stays read-only with an
explanatory notice for plain admins.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-25 02:00:14 +03:00
..
2026-07-09 03:41:48 +03:00
2026-07-23 16:56:58 +03:00
2026-07-23 16:56:58 +03:00
2026-06-09 08:40:31 +03:00
2026-07-23 21:18:25 +03:00
2026-06-09 08:40:31 +03:00
2026-07-14 19:10:36 +03:00
2026-06-09 08:40:31 +03:00
2026-06-29 00:26:08 +03:00
2026-07-14 00:54:51 +03:00
2026-07-12 05:40:28 +03:00
2026-06-16 17:47:19 +03:00
2026-06-29 00:07:33 +03:00
2026-06-09 08:40:31 +03:00
2026-06-12 20:40:40 +03:00
2026-06-28 00:42:26 +03:00
2026-06-11 13:47:40 +03:00
2026-06-25 01:22:26 +03:00
2026-06-16 01:17:29 +03:00
2026-06-24 16:12:30 +03:00
2026-06-27 05:07:43 +03:00
2026-06-25 01:15:22 +03:00
2026-06-12 20:40:40 +03:00