Fix: Wrong permission check on force invite check

This commit is contained in:
buddh4 2018-07-16 19:00:48 +02:00
parent 2dedbdadd5
commit b4cfc86a49
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ HumHub Change Log
- Fix: Added user dn to ldap attributes on login
- Enh: Added Twig template engine for usage in modules
- Enh: Added id data attribute on contentcontainer links
- Fix: Wrong permission check on force invite check
1.3.0-beta.1 (July 4, 2018)
----------------------------

View File

@ -116,7 +116,7 @@ class InviteForm extends Model
*/
public function isQueuedJob()
{
return ($this->withoutInvite || $this->allRegisteredUsers) && $this->space->can(ManageUsers::class);
return ($this->withoutInvite || $this->allRegisteredUsers) && Yii::$app->user->can(ManageUsers::class);
}
public function forceInvite() {