Changeset 509

Show
Ignore:
Timestamp:
08/16/06 08:58:33 (2 years ago)
Author:
ben
Message:

Admins can now disable template changing outright.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • devel/config-dist.php

    r507 r509  
    135135// TEMPLATES HANDLING 
    136136//$CFG->disable_usertemplates = true;  // users can only choose from available templates 
    137  
     137//$CFG->disable_templatechanging = true; // users can't change their template at all 
    138138//Templates root defaults to /_templates; if you change this, you will need 
    139139//to move or copy /_templates/Default_Template/ to the new location 
  • devel/mod/template/lib.php

    r499 r509  
    99    $page_owner = $profile_id; 
    1010 
    11     if (defined("context") && context == "account") { 
     11    if (defined("context") && context == "account" && !$CFG->disable_templatechanging) { 
    1212        if ($page_owner == $_SESSION['userid'] && $page_owner != -1) { 
    1313            $PAGE->menu_sub[] = array( 'name' => 'template:change', 
  • devel/units/templates/template_actions.php

    r454 r509  
    55        global $template; 
    66         
    7         if (isset($_REQUEST['action']) && logged_on) { 
     7        if (isset($_REQUEST['action']) && logged_on && !$CFG->dispable_templatechanging) { 
    88             
    99            switch($_REQUEST['action']) {