Changeset 12382


Ignore:
Timestamp:
Oct 8, 2011, 12:59:52 AM (9 years ago)
Author:
ddtddt
Message:

[extensions] - uploadt1menu - add user_permissions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/uploadt1menu/main.inc.php

    r12380 r12382  
    3232 $menu = & $menu_ref_arr[0];
    3333 
     34   global $conf, $user;
     35
     36  $user_permissions = community_get_user_permissions($user['id']);
     37
     38  if (count($user_permissions['upload_categories']) == 0 and !$user_permissions ['create_whole_gallery'])
     39  {
     40    return;
     41  }
     42 
     43 
    3444 load_language('plugin.lang', COMMUNITY_PATH);
    3545 load_language('lang', PHPWG_ROOT_PATH.'local/', array('no_fallback'=>true, 'local'=>true) );
Note: See TracChangeset for help on using the changeset viewer.