Fixed missing "Space Join" activity for new registered users on default spaces

This commit is contained in:
Lucas Bartholemy 2014-07-05 13:44:26 +02:00
parent 2f90226512
commit 90b5e016d2

View File

@ -698,7 +698,7 @@ class Content extends CActiveRecord
public function beforeValidate()
{
if (!$this->container->canWrite()) {
if (!$this->container->canWrite($this->created_by)) {
$this->addError('visibility', Yii::t('WallModule.base', 'Insufficent permissions to create content!'));
}