Changeset 325
- Timestamp:
- 05/08/06 21:50:04 (3 years ago)
- Files:
-
- devel/mod/profile/lib.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
devel/mod/profile/lib.php
r322 r325 6 6 global $PAGE; 7 7 global $CFG; 8 global $page_owner; 8 9 9 10 $page_owner = $profile_id; … … 19 20 } 20 21 21 if (profile_permissions_check("profile") && context === "profile") { 22 // if (profile_permissions_check("profile") && context === "profile") { 23 if (run("permissions:check", "profile") && context === "profile") { 22 24 23 25 $PAGE->menu_sub[] = array( 'name' => 'profile:edit', … … 40 42 function profile_permissions_check ($object) { 41 43 global $page_owner; 44 42 45 if ($object === "profile" && $page_owner == $_SESSION['userid']) { 43 46 return true;
