hopefully solve db update issues bug #182

This commit is contained in:
Friendika 2011-10-18 00:18:21 -07:00
parent cc5974e6c2
commit 06096486d4
2 changed files with 19 additions and 9 deletions

View file

@ -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;
}