JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
upgrade login/password/session/auth handling
[wfpl-cms.git] / admin_files.php
index 98c98e3..1531d9f 100644 (file)
@@ -44,12 +44,7 @@ function admin_files_get_fields() {
 
 
 function admin_files_main() {
-       if(logged_in_as_admin()) {
-               tem_set('admin_privs');
-       } else {
-               $_REQUEST['url'] = this_url();
-               return 'admin_login';
-       }
+       session_auth_must('manage_files');
 
        $id = _REQUEST_cut('edit_id');
        if($id) {