Changeset 325

Show
Ignore:
Timestamp:
05/08/06 21:50:04 (3 years ago)
Author:
ben
Message:

Fix to prevent 'edit profile' links from erroneously appearing

Files:

Legend:

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

    r322 r325  
    66    global $PAGE; 
    77    global $CFG; 
     8    global $page_owner; 
    89 
    910    $page_owner = $profile_id; 
     
    1920    } 
    2021 
    21     if (profile_permissions_check("profile") && context === "profile") { 
     22    // if (profile_permissions_check("profile") && context === "profile") { 
     23    if (run("permissions:check", "profile") && context === "profile") { 
    2224             
    2325        $PAGE->menu_sub[] = array( 'name' => 'profile:edit',  
     
    4042function profile_permissions_check ($object) { 
    4143    global $page_owner; 
     44     
    4245    if ($object === "profile" && $page_owner == $_SESSION['userid']) { 
    4346        return true;