From 47163139037b661f3754e7bae49670d1bc1de3a2 Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Sun, 1 Mar 2026 10:16:51 +0000 Subject: [PATCH] v78 --- startup_details.php | 54 +++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 52 insertions(+), 2 deletions(-) diff --git a/startup_details.php b/startup_details.php index b2bfb42..a847357 100644 --- a/startup_details.php +++ b/startup_details.php @@ -36,9 +36,11 @@ if (!$startup) { // Check if user is the founder or an investor $isFounder = ($_SESSION['user_id'] == $startup['founder_id']); $isInvestor = ($user['role'] == 'investor'); +$isAnyFounder = ($user['role'] == 'founder'); // Basic permissions check -if (!$isFounder && $startup['status'] === 'private' && !$isInvestor) { +// Allow if: is the founder, OR is an investor, OR is any founder (for partnership), OR startup is public +if (!$isFounder && !$isInvestor && !$isAnyFounder && $startup['status'] === 'private') { die("You do not have permission to view this profile."); } @@ -485,6 +487,54 @@ $progress = ($goal > 0) ? round(($raised / $goal) * 100) : 0;

+ + +
+

Partnership & Co-founder Info

+
+
+
Co-founder Equity
+
%
+
+
+
Equity Type
+
+
+
+ + +
+
Core Responsibilities
+
+ +
+
+ + +
+ +
+
Desired Experience
+
+
+ + +
+
Commitment Required
+
+
+ +
+ + +
+
Other Details
+
+
+ +
+ +

Financial Health

@@ -709,4 +759,4 @@ function toggleFollow(startupId) { - + \ No newline at end of file