summaryrefslogtreecommitdiffstats
path: root/preferences.php
diff options
context:
space:
mode:
Diffstat (limited to 'preferences.php')
-rw-r--r--preferences.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/preferences.php b/preferences.php
index 8d8c584d..5ce478b7 100644
--- a/preferences.php
+++ b/preferences.php
@@ -66,7 +66,7 @@ switch($_REQUEST['action']) {
$preferences = $GLOBALS['user']->get_preferences(-1,$_REQUEST['tab']);
break;
case 'user':
- if (!$GLOBALS['user']->has_access('100')) {
+ if (!Access::check('interface','100')) {
access_denied();
exit;
}
@@ -76,7 +76,7 @@ switch($_REQUEST['action']) {
break;
case 'update_user':
// Make sure we're a user and they came from the form
- if (!$GLOBALS['user']->has_access('25') || $_POST['form_string'] != $_SESSION['forms']['account']) {
+ if (!Access::check('interface','25') || $_POST['form_string'] != $_SESSION['forms']['account'] || !strlen($_SESSION['forms']['account'])) {
access_denied();
exit;
}