mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 06:08:21 +01:00
Fix access to own user container (#6541)
This commit is contained in:
parent
d94a3bbf57
commit
a5f410e8ce
@ -7,6 +7,7 @@ HumHub Changelog
|
|||||||
- Fix #6507: Reload page after accepting of invite in Space header
|
- Fix #6507: Reload page after accepting of invite in Space header
|
||||||
- Fix #6531: Fix active style for `btn-lg`
|
- Fix #6531: Fix active style for `btn-lg`
|
||||||
- Fix #6534: Cannot change Homepage of space in PHP 8.x
|
- Fix #6534: Cannot change Homepage of space in PHP 8.x
|
||||||
|
- Fix #6464: Fix access to own user container
|
||||||
|
|
||||||
1.14.3 (July 27, 2023)
|
1.14.3 (July 27, 2023)
|
||||||
----------------------
|
----------------------
|
||||||
|
@ -167,13 +167,15 @@ class ContentContainerControllerAccess extends StrictAccess
|
|||||||
*/
|
*/
|
||||||
public function isAdmin()
|
public function isAdmin()
|
||||||
{
|
{
|
||||||
if(parent::isAdmin()) {
|
if (parent::isAdmin()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->contentContainer instanceof Space) {
|
if ($this->contentContainer instanceof Space) {
|
||||||
return $this->contentContainer->isAdmin($this->user);
|
return $this->contentContainer->isAdmin($this->user);
|
||||||
} elseif($this->contentContainer instanceof Space) {
|
}
|
||||||
|
|
||||||
|
if ($this->contentContainer instanceof User) {
|
||||||
return $this->user && $this->user->is($this->contentContainer);
|
return $this->user && $this->user->is($this->contentContainer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user