Changeset 806

Show
Ignore:
Timestamp:
11/30/06 03:56:16 (2 years ago)
Author:
fumiakiy
Message:

Fixed so list of users in grant_role dialog will not show commenters. BugId: 45483; Also removed reference to Groups from a template.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/wheeljack/lib/MT/App/CMS.pm

    r804 r806  
    1060410604    }; 
    1060510605 
     10606    # Only show active users who are not commenters. 
     10607    my $terms = {}; 
     10608    if ($type eq 'author') { 
     10609        $terms->{status} = MT::Author::ACTIVE(); 
     10610        $terms->{type} = MT::Author::AUTHOR(); 
     10611    } 
     10612 
    1060610613    if ($app->param('search') || $app->param('json')) { 
    1060710614        $app->listing({ 
     10615            Term => $terms, 
    1060810616            Type => $type, 
    1060910617            Code => $hasher, 
     
    1068410692            }; 
    1068510693 
    10686             # Only show active users
     10694            # Only show active users who are not commenters
    1068710695            my $terms = {}; 
    1068810696            if ($source eq 'author') { 
    1068910697                $terms->{status} = MT::Author::ACTIVE(); 
     10698                $terms->{type} = MT::Author::AUTHOR(); 
    1069010699            } 
    1069110700 
  • branches/wheeljack/tmpl/cms/edit_role.tmpl

    r752 r806  
    115115<li class="yah"><a href="<TMPL_VAR NAME=SCRIPT_URL>?__mode=edit_role&amp;id=<TMPL_VAR NAME=ID>"><MT_TRANS phrase="Details"></a></li> 
    116116<TMPL_IF NAME=ID> 
    117 <li><a href="<TMPL_VAR NAME=SCRIPT_URL>?__mode=list_associations&amp;role_id=<TMPL_VAR NAME=ID>"><MT_TRANS phrase="Users/Groups"></a></li> 
     117<li><a href="<TMPL_VAR NAME=SCRIPT_URL>?__mode=list_associations&amp;role_id=<TMPL_VAR NAME=ID>"><MT_TRANS phrase="Users"></a></li> 
    118118</TMPL_IF> 
    119119</ul>