Skip to content

Commit

Permalink
Fix for #4495
Browse files Browse the repository at this point in the history
Condition at L4355 was wrong as item with $accessLevel for a user higher to 30 indicates that user can RWDU the item.
As a consequence, the related right is 70.
  • Loading branch information
nilsteampassnet committed Dec 4, 2024
1 parent 6abf995 commit 6a76769
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion includes/config/include.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

define('TP_VERSION', '3.1.3');
define("UPGRADE_MIN_DATE", "1732981987");
define('TP_VERSION_MINOR', '1');
define('TP_VERSION_MINOR', '2');
define('TP_TOOL_NAME', 'Teampass');
define('TP_ONE_DAY_SECONDS', 86400);
define('TP_ONE_WEEK_SECONDS', 604800);
Expand Down
2 changes: 1 addition & 1 deletion sources/items.queries.php
Original file line number Diff line number Diff line change
Expand Up @@ -4352,7 +4352,7 @@
$right = 20;
} elseif ((20 <= (int) $accessLevel) && ((int) $accessLevel < 30)) {
$right = 60;
} elseif ((int) $accessLevel === 30) {
} elseif ((int) $accessLevel >= 30) {
$right = 70;
} else {
$right = 10;
Expand Down

0 comments on commit 6a76769

Please sign in to comment.