mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 22:28:51 +01:00
Guest users can't access public posts from 'Latest activities
This commit is contained in:
parent
47ca878d17
commit
91da3f0693
@ -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
|
||||
------------
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user