[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 04/24: Remove unauthorized profile
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 04/24: Remove unauthorized profile |
Date: |
Tue, 12 Jul 2022 07:05:23 -0400 (EDT) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit be71f98aab582a151694bdebd2964131ea3bdc8a
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Tue May 3 22:40:30 2022 +0200
Remove unauthorized profile
---
include/profile.inc.php | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/include/profile.inc.php b/include/profile.inc.php
index f15fbcafb..736398066 100644
--- a/include/profile.inc.php
+++ b/include/profile.inc.php
@@ -34,18 +34,17 @@ if (isset($_POST['change_profile']))
$aUserProfile=$http->post("ua_id","array",array());
$p_id=$http->post("p_id","number");
$aProfile=$http->post("ap_id","array",array());
-
for ($e=0; $e<count($aUserProfile); $e++)
{
if ($aUserProfile[$e]=='X'&&$aUserProfile[$e]=='')
continue;
- if ($aUserProfile[$e]=='X'&&$aUserProfile[$e]!='')
+ if ($aRight[$e]=='X'&&$aUserProfile[$e]!='')
{
$cn->exec_sql("delete from user_sec_action_profile where
p_id=$1 and p_granted=$2",
array($p_id, $aProfile[$e]));
continue;
}
- if ($aUserProfile[$e]=="")
+ if ($aUserProfile[$e]==""&& $aRight[$e] !='X')
{
$cn->exec_sql("insert into user_sec_action_profile
(p_id,p_granted,ua_right) values($1,$2,$3)",
array($p_id, $aProfile[$e], $aRight[$e]));
- [Noalyss-commit] [noalyss] 05/24: Security : management , profile access, (continued)
- [Noalyss-commit] [noalyss] 05/24: Security : management , profile access, Dany De Bontridder, 2022/07/12
- [Noalyss-commit] [noalyss] 09/24: Supplemental TAX : manage parameter A ledger can have only 1 supplemental tax, Dany De Bontridder, 2022/07/12
- [Noalyss-commit] [noalyss] 13/24: code documentation, Dany De Bontridder, 2022/07/12
- [Noalyss-commit] [noalyss] 10/24: New : 2178 Additional Tax : input in purchase and sale ledger - tax with positive amount - tax with negative amount - tax in currency, Dany De Bontridder, 2022/07/12
- [Noalyss-commit] [noalyss] 11/24: Nouveau #0002178: Cotisation de solidarité Impression : Listing (HTML, CSV et PDF) Impression : Extended (HTML, CSV et PDF) Negatif amount and currency, Dany De Bontridder, 2022/07/12
- [Noalyss-commit] [noalyss] 14/24: Additional Tax : database changes, Dany De Bontridder, 2022/07/12
- [Noalyss-commit] [noalyss] 16/24: Additional Tax : export operation PDF, Dany De Bontridder, 2022/07/12
- [Noalyss-commit] [noalyss] 17/24: Additional Tax : automatic compute, Dany De Bontridder, 2022/07/12
- [Noalyss-commit] [noalyss] 23/24: Bug : supplemental tax cannot be deleted, Dany De Bontridder, 2022/07/12
- [Noalyss-commit] [noalyss] 19/24: Cosmetic : waiting box if confirmed, Dany De Bontridder, 2022/07/12
- [Noalyss-commit] [noalyss] 04/24: Remove unauthorized profile,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 07/24: cosmetic, Dany De Bontridder, 2022/07/12
- [Noalyss-commit] [noalyss] 12/24: Additional Tax : input in purchase and sale ledger - tax with positive amount - tax with negative amount - tax currency - Reverse operation - Correct in operation detail the amount of linked operation, Dany De Bontridder, 2022/07/12
- [Noalyss-commit] [noalyss] 18/24: Additional tax : remains when correct operation Cosmetic, Dany De Bontridder, 2022/07/12
- [Noalyss-commit] [noalyss] 20/24: Cosmetic : restore administration, we set the max filesize, Dany De Bontridder, 2022/07/12
- [Noalyss-commit] [noalyss] 22/24: Doc, correct bug introduced by auto-correct, Dany De Bontridder, 2022/07/12
- [Noalyss-commit] [noalyss] 15/24: Additional Tax : security, Dany De Bontridder, 2022/07/12
- [Noalyss-commit] [noalyss] 24/24: Bug: Fails when p_callback_true is false, Dany De Bontridder, 2022/07/12
- [Noalyss-commit] [noalyss] 21/24: Correct Cosmetic : waiting_box, Dany De Bontridder, 2022/07/12