Show
Ignore:
Timestamp:
09/13/05 23:35:35 (8 years ago)
Author:
fproulx
Message:

2005-09-13 Francois Proulx <francois.proulx@…>

  • Added access permissions for statistics.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog-auth/wifidog/classes/MainUI.php

    r745 r753  
    145145                                                $html .= "</div>\n"; 
    146146                                                $html .= '</form>'; 
    147                                                 $html .= "<div class='admin_section_tools'>\n"; 
    148                                                 $html .= '<form action="'.GENERIC_OBJECT_ADMIN_ABS_HREF.'" method="post">'; 
    149                                                 $html .= "<input type='hidden' name='action' value='new_ui'>\n"; 
    150                                                 $html .= "<input type='hidden' name='object_class' value='Node'><br>\n"; 
    151                                                 $html .= "<input type=submit name='new_submit' value='"._("Create")."'>\n"; 
    152                                                 $html .= "</form>\n"; 
    153                                                 $html .= "</div>\n"; 
     147                                                 
     148                                                if($current_user->isSuperAdmin()) 
     149                                                { 
     150                                                        $html .= "<div class='admin_section_tools'>\n"; 
     151                                                        $html .= '<form action="'.GENERIC_OBJECT_ADMIN_ABS_HREF.'" method="post">'; 
     152                                                        $html .= "<input type='hidden' name='action' value='new_ui'>\n"; 
     153                                                        $html .= "<input type='hidden' name='object_class' value='Node'><br>\n"; 
     154                                                        $html .= "<input type=submit name='new_submit' value='"._("Create")."'>\n"; 
     155                                                        $html .= "</form>\n"; 
     156                                                        $html .= "</div>\n"; 
     157                                                } 
     158                                                 
    154159                                                $html .= "</div>\n"; 
    155160                                        }