mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-12-22 01:35:02 +00:00
Bugfix: Fix crash when trying to access the user table when not logged in as an admin.
Thanks, @Gert-dev for php-ide-serenata!
This commit is contained in:
parent
0e8a27e7f7
commit
1367641b58
2 changed files with 3 additions and 2 deletions
|
@ -10,6 +10,7 @@ This file holds the changelog for Pepperminty Wiki. This is the master list of t
|
|||
- Squashed a warning if the search index doesn't exist yet
|
||||
- Fixed a crash in the stats updater if no pages in the system have tags yet
|
||||
- Consolidated `email` and `emailAddress` fields into the latter in the user table (#167)
|
||||
- Fixed a crash when trying to access the user table when not logged in as an administrator.
|
||||
|
||||
### Added
|
||||
- [Module API] Added new extra data system. See `parser-parsedown` and `page-edit` for an example.
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
register_module([
|
||||
"name" => "User Organiser",
|
||||
"version" => "0.1",
|
||||
"version" => "0.1.1",
|
||||
"author" => "Starbeamrainbowlabs",
|
||||
"description" => "Adds a organiser page that lets moderators (or better) control the reegistered user accounts, and perform adminstrative actions such as password resets, and adding / removing accounts.",
|
||||
"id" => "feature-user-table",
|
||||
|
@ -190,7 +190,7 @@ https://github.com/sbrl/Pepperminty-Wiki/
|
|||
global $env, $settings;
|
||||
|
||||
if(!$env->is_admin) {
|
||||
http_response_400(401);
|
||||
http_response_code(401);
|
||||
exit(page_renderer::render_main("Error - Set Password - $settings->sitename", "<p>Error: You aren't logged in as a moderator, so you don't have permission to set a user's password.</p>"));
|
||||
}
|
||||
if(empty($_POST["user"])) {
|
||||
|
|
Loading…
Reference in a new issue