From c483b6d8ab1f6aa89c0b5b82d44cc76d29e99a62 Mon Sep 17 00:00:00 2001 From: Jason Woofenden Date: Fri, 2 Oct 2015 18:08:43 -0400 Subject: [PATCH] metaform: when password required, use new api --- metaform/template.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/metaform/template.php b/metaform/template.php index d45ade3..b0b6298 100644 --- a/metaform/template.php +++ b/metaform/template.php @@ -88,12 +88,7 @@ function ~public_file_name~_main() {~opt_public_display {~ function ~file_name~_main() {~opt_pass {~ - if (logged_in_as_admin()) { - tem_set('admin_privs'); - } else { - $_REQUEST['url'] = this_url(); - return 'admin_login'; - } + session_auth_must('admin_~file_name~'); ~}~~opt_db {~ $id = _REQUEST_cut('edit_id'); if ($id) { -- 1.7.10.4