mirror of
https://github.com/friendica/friendica
synced 2025-04-27 06:30:12 +00:00
hopefully solve db update issues bug #182
This commit is contained in:
parent
cc5974e6c2
commit
06096486d4
2 changed files with 19 additions and 9 deletions
|
@ -5,16 +5,9 @@
|
|||
*/
|
||||
require_once("include/remoteupdate.php");
|
||||
|
||||
function admin_init(&$a) {
|
||||
if(!is_site_admin()) {
|
||||
notice( t('Permission denied.') . EOL);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
function admin_post(&$a){
|
||||
if(!is_site_admin()) {
|
||||
return login(false);
|
||||
return;
|
||||
}
|
||||
|
||||
// urls
|
||||
|
@ -672,7 +665,7 @@ function admin_page_logs(&$a){
|
|||
function admin_page_remoteupdate_post(&$a) {
|
||||
// this function should be called via ajax post
|
||||
if(!is_site_admin()) {
|
||||
return login(false);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue