includes/clientside/static/acl.js
changeset 907 44851d7e9bda
parent 823 4596c40aaa94
child 1056 f21d6e75b469
--- a/includes/clientside/static/acl.js	Mon Apr 13 14:43:28 2009 -0400
+++ b/includes/clientside/static/acl.js	Mon Apr 13 16:57:20 2009 -0400
@@ -9,6 +9,21 @@
   if(IE)
     return true;
   
+  void(page_id);
+  void(namespace);
+  
+  // require re-auth
+  if ( auth_level <= USER_LEVEL_MEMBER )
+  {
+    load_component(['login', 'fadefilter', 'flyin', 'jquery', 'jquery-ui', 'crypto', 'messagebox']);
+    ajaxDynamicReauth(function(key)
+      {
+        ajaxOpenACLManager(page_id, namespace);
+      }, user_level);
+    
+    return false;
+  }
+  
   load_component(['l10n', 'messagebox', 'fadefilter', 'template-compiler', 'jquery', 'jquery-ui', 'autofill']);
   
   if(!page_id || !namespace)