Changeset 427

Show
Ignore:
Timestamp:
07/04/06 10:34:10 (2 years ago)
Author:
ben
Message:

Change to accommodate administration privileges into profile-related permissions checking. Previously the admin unit had overridden permissions with 'yes' if the user was an admin; however, profile no longer uses the units code.

Files:

Legend:

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

    r339 r427  
    4141    global $page_owner; 
    4242     
    43     if ($object === "profile" && $page_owner == $_SESSION['userid']) { 
     43    if ($object === "profile" && ($page_owner == $_SESSION['userid'] || run("users:flags:get", array("admin", $_SESSION['userid'])))) { 
    4444        return true; 
    4545    }