mirror of
https://github.com/friendica/friendica
synced 2024-12-23 15:20:17 +00:00
Merge pull request #1461 from fabrixxm/issue-1459
Block settings page for unauthorized users
This commit is contained in:
commit
1ccbf39799
1 changed files with 6 additions and 1 deletions
|
@ -16,6 +16,11 @@ function get_theme_config_file($theme){
|
||||||
|
|
||||||
function settings_init(&$a) {
|
function settings_init(&$a) {
|
||||||
|
|
||||||
|
if(! local_user()) {
|
||||||
|
notice( t('Permission denied.') . EOL );
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// APC deactivated, since there are problems with PHP 5.5
|
// APC deactivated, since there are problems with PHP 5.5
|
||||||
//if (function_exists("apc_delete")) {
|
//if (function_exists("apc_delete")) {
|
||||||
// $toDelete = new APCIterator('user', APC_ITER_VALUE);
|
// $toDelete = new APCIterator('user', APC_ITER_VALUE);
|
||||||
|
@ -593,7 +598,7 @@ function settings_content(&$a) {
|
||||||
nav_set_selected('settings');
|
nav_set_selected('settings');
|
||||||
|
|
||||||
if(! local_user()) {
|
if(! local_user()) {
|
||||||
notice( t('Permission denied.') . EOL );
|
#notice( t('Permission denied.') . EOL );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue