Fix users not able to see their own content
This commit is contained in:
parent
837ee3fb9f
commit
97480fd46f
4 changed files with 6 additions and 4 deletions
|
@ -158,7 +158,7 @@ switch ($step) {
|
|||
`password_reset_token` VARCHAR(128) NULL NULL,
|
||||
`password_reset_valid_until` DATETIME NOT NULL DEFAULT NOW(),
|
||||
`last_login` DATETIME NOT NULL DEFAULT NOW(),
|
||||
`power` INT NOT NULL DEFAULT 0,
|
||||
`power` INT NOT NULL DEFAULT 1,
|
||||
`birthdate` DATE NULL DEFAULT NULL,
|
||||
`language` VARCHAR(5) NOT NULL DEFAULT "' . DEFAULT_LOCALE . '",
|
||||
`currency` VARCHAR(3) NOT NULL DEFAULT "' . $currencyISO . '",
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
namespace wishthis;
|
||||
|
||||
$page = new Page(__FILE__, __('Profile'));
|
||||
$page = new Page(__FILE__, __('Profile'), 1);
|
||||
|
||||
if (isset($_POST['user-id'], $_POST['section'])) {
|
||||
$set = array();
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
namespace wishthis;
|
||||
|
||||
$page = new Page(__FILE__, __('Remembered lists'));
|
||||
$page = new Page(__FILE__, __('Remembered lists'), 1);
|
||||
$page->header();
|
||||
$page->bodyStart();
|
||||
$page->navigation();
|
||||
|
|
|
@ -23,4 +23,6 @@ AFTER
|
|||
UPDATE
|
||||
`users`
|
||||
SET
|
||||
`currency` = `language`;
|
||||
`power` = 1
|
||||
WHERE
|
||||
`power` = 0;
|
||||
|
|
Loading…
Reference in a new issue