Bug #48269
Add FE group 0 by default in no one is given as parameter
| Status: | Closed | Start date: | 2013-05-16 | |
|---|---|---|---|---|
| Priority: | Should have | Due date: | ||
| Assigned To: | - | % Done: | 100% |
|
| Category: | - | |||
| Target version: | - |
Description
Hi,
environment: TYPO3 6.1
I seems there is a problem computing the hash, if no FE group is given as parameter. FYI, I get this message "Hash invalid! Access denied!" for every file. A solution would be setting a FE group 0 by default in no one is given as parameter as done for FE user $frontendUserId = 0;.
diff --git a/class.tx_nawsecuredl.php b/class.tx_nawsecuredl.php
index 22ac5cc..b67476d 100644
--- a/class.tx_nawsecuredl.php
+++ b/class.tx_nawsecuredl.php
@@ -168,7 +168,7 @@ class tx_nawsecuredl {
$frontendUserGroupIds = t3lib_div::trimExplode(',', $this->objFrontend->fe_user->user['usergroup'], TRUE);
} else {
$frontendUserId = 0;
- $frontendUserGroupIds = array();
+ $frontendUserGroupIds = array(0);
}
$cacheTimeToAdd = $this->extensionConfiguration['cachetimeadd'];
History
#1 Updated by anybody no-lastname-given about 2 years ago
It seems to be a general problem. With Typo3 v4.7.x naw_securedl v. 1.6.1 produces links like
This means, that always I get an empty group parameter (&g=&). It is equal whether the new group option is activated or not.
#2 Updated by Eric Chavaillaz about 2 years ago
It's the same for me with TYPO3 4.5.25...
Thanks
#3 Updated by Dietrich Heise about 2 years ago
- Status changed from New to Accepted
#4 Updated by Eric Chavaillaz about 2 years ago
Is this fix with the last version uploaded in the TER?
Thanks
#5 Updated by Dietrich Heise about 2 years ago
- Status changed from Accepted to Closed
- % Done changed from 0 to 100
Yes it's fixed in 1.7.1.
Dietrich