Changeset 721

Show
Ignore:
Timestamp:
11/27/06 14:57:17 (2 years ago)
Author:
ben
Message:

You no longer see the 'edit profile' screen on a community if you do not have edit profile privileges.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • devel/mod/community/lib.php

    r659 r721  
    1414             
    1515        if (defined("context") && context == "profile") { 
    16              
    17             $PAGE->menu_sub[] = array( 'name' => 'profile:edit',  
    18                                        'html' => '<a href="'.$CFG->wwwroot.'profile/edit.php?profile_id='.$page_owner.'">' 
    19                                        . __gettext("Edit this profile") . '</a>'); 
    2016 
    2117            if (run("permissions:check", "profile")) { 
    2218             
     19                $PAGE->menu_sub[] = array( 'name' => 'profile:edit',  
     20                                       'html' => '<a href="'.$CFG->wwwroot.'profile/edit.php?profile_id='.$page_owner.'">' 
     21                                       . __gettext("Edit this profile") . '</a>'); 
     22                 
    2323                $PAGE->menu_sub[] = array( 'name' => 'community:pic', 
    2424                                           'html' => a_href("{$CFG->wwwroot}_icons/?context=profile&amp;profile_id=$page_owner" ,