Guest users can't access public posts from 'Latest activities

This commit is contained in:
buddh4 2020-01-23 16:32:28 +01:00
parent 47ca878d17
commit 91da3f0693
2 changed files with 3 additions and 10 deletions

View File

@ -31,6 +31,7 @@ HumHub Change Log (DEVELOP)
- Fix #3829: Guest user access to counter set freezes
- Enh: `data-action` url now can be set as `href` attribute additionally to `data-action-url`
- Fix #3837: Legacy modal may freeze in case of errors
- Fix #3796: Guest users can't access public posts from 'Latest activities'
1.4.0-beta.2
------------

View File

@ -9,9 +9,9 @@
namespace humhub\modules\activity\controllers;
use Yii;
use humhub\components\access\StrictAccess;
use humhub\components\Controller;
use humhub\modules\activity\models\Activity;
use humhub\components\behaviors\AccessControl;
use yii\web\HttpException;
/**
@ -25,15 +25,7 @@ class LinkController extends Controller
/**
* @inheritdoc
*/
public function behaviors()
{
return [
'acl' => [
'class' => AccessControl::class,
'guestAllowedActions' => ['info']
]
];
}
public $access = StrictAccess::class;
/**
* Returns the link for the given activity.