This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, master has been updated
       via  5ffadb9359bbdccbcce8462e827e91d42f07b875 (commit)
      from  19fac0554a1225ee0c98104ae09d33d0ecb716c7 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://scm.fusionforge.org/anonscm/gitweb/?p=fusionforge/fusionforge.git;a=commitdiff;h=5ffadb9359bbdccbcce8462e827e91d42f07b875

commit 5ffadb9359bbdccbcce8462e827e91d42f07b875
Author: Franck Villaume <[email protected]>
Date:   Sat Dec 1 17:50:34 2018 +0100

    ensure user is the owner to display configuration menu

diff --git a/src/www/users b/src/www/users
index 04760eb..28708fd 100644
--- a/src/www/users
+++ b/src/www/users
@@ -91,7 +91,7 @@ if (!$user || !is_object($user) || $user->isError() || 
!$user->isActive()) {
                if (!forge_get_config('user_home_widget')) {
                        include $gfwww.'include/user_home.php';
                } else {
-                       if (session_loggedin()) {
+                       if (session_loggedin() && ($user->getID() == 
user_getid())) {
                                $sql = "SELECT l.*
                                                FROM layouts AS l INNER JOIN 
owner_layouts AS o ON(l.id = o.layout_id)
                                                WHERE o.owner_type = $1

-----------------------------------------------------------------------

Summary of changes:
 src/www/users | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


hooks/post-receive
-- 
FusionForge

_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits

Reply via email to