mirror of
https://github.com/humhub/humhub.git
synced 2025-01-16 21:58:17 +01:00
Fix: Wrong permission check on force invite check
This commit is contained in:
parent
2dedbdadd5
commit
b4cfc86a49
@ -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)
|
||||
----------------------------
|
||||
|
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user