Ignore:
Timestamp:
Apr 7, 2013, 9:06:52 PM (11 years ago)
Author:
nikrou
Message:

Admin can allow users to add only existing tags

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/user_tags/include/t4u_content.class.php

    r20762 r22062  
    4444      $template->assign('T4U_REFERER', urlencode($picture['url']));
    4545      $template->assign('T4U_PERMISSION_DELETE', $this->plugin_config->hasPermission('delete'));
     46      if ($this->plugin_config->hasPermission('existing_tags_only')) {
     47        $template->assign('T4U_ALLOW_CREATION', 'false');
     48      } else {
     49        $template->assign('T4U_ALLOW_CREATION', 'true');
     50      }
    4651     
    4752      $related_tags = array();
Note: See TracChangeset for help on using the changeset viewer.