Check-in [5b4bfc7542]
Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Use markdown error message for non-admin users. |
---|---|
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
5b4bfc7542cc8a7a04c734cec3a64281 |
User & Date: | mario 2021-04-06 18:23:20 |
Context
2021-04-07
| ||
15:45 | fix "Array" preset from changed definition check-in: b85d9fa044 user: mario tags: trunk | |
2021-04-06
| ||
18:23 | Use markdown error message for non-admin users. check-in: 5b4bfc7542 user: mario tags: trunk | |
18:22 | Rough outline of how to map requests onto fossil commands. check-in: 32f4421035 user: mario tags: trunk | |
Changes
Changes to extroot/sqliteadmin.
︙ | ︙ | |||
19 20 21 22 23 24 25 | #-- fossil CGI environment settings $_DATABASE = $_SERVER["FOSSIL_REPOSITORY"]; $_IS_ADMIN = strpos($_SERVER["FOSSIL_CAPABILITIES"], "s") !== false; #-- stop right here if no `s` capabilities if (!$_IS_ADMIN) { | > | | 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | #-- fossil CGI environment settings $_DATABASE = $_SERVER["FOSSIL_REPOSITORY"]; $_IS_ADMIN = strpos($_SERVER["FOSSIL_CAPABILITIES"], "s") !== false; #-- stop right here if no `s` capabilities if (!$_IS_ADMIN) { header("Content-Type: text/x-markdown"); die("## Access denied\n\nOnly accessible for admin users."); } ?><?php // // Project: phpLiteAdmin (https://www.phpliteadmin.org/) // Version: 1.9.9-dev |
︙ | ︙ |