diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-20 18:08:05 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-20 18:08:05 +0000 |
commit | 735bb024f58cf28181fcb9baa62e4063b0f7171b (patch) | |
tree | f6e04d32e2453befbacaf8d75e636bb92507c27d /mod/profile/actions | |
parent | b9a46dc335546fbf62ae4e05d1f69ec2fd7b07c3 (diff) | |
download | elgg-735bb024f58cf28181fcb9baa62e4063b0f7171b.tar.gz elgg-735bb024f58cf28181fcb9baa62e4063b0f7171b.tar.bz2 |
Fixed profile, and allowed admins to edit other profiles
git-svn-id: https://code.elgg.org/elgg/trunk@1036 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/profile/actions')
-rw-r--r-- | mod/profile/actions/edit.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mod/profile/actions/edit.php b/mod/profile/actions/edit.php index 7ace0a22b..7a74535cd 100644 --- a/mod/profile/actions/edit.php +++ b/mod/profile/actions/edit.php @@ -22,7 +22,13 @@ }
// Save stuff if we can, and forward to the user's profile
- $user = $_SESSION['user'];
+
+ if ($user = page_owner()) {
+ $user = page_owner_entity();
+ } else {
+ $user = $_SESSION['user'];
+ set_page_owner($user->getGUID());
+ }
if ($user->canEdit()) {
// Save stuff
|