Version 5.0.13
This commit is contained in:
1 parent
b89858b2ff
commit
5efe744c5f
1407 files changed
+69690
-30177
No files matched your search
@@ -216,6 +216,12 @@ trait MetaData
|
||||
*/
|
||||
public function canOnMessage( string $action, ?Member $member = NULL ): bool
|
||||
{
|
||||
/* Extensions go first */
|
||||
if( $permCheck = Permissions::can( 'onMessage', $this, $member ) )
|
||||
{
|
||||
return ( $permCheck === Permissions::PERM_ALLOW );
|
||||
}
|
||||
|
||||
if( !$this->actionEnabled( 'onMessage', $member ) )
|
||||
{
|
||||
return false;
|
||||
@@ -300,6 +306,12 @@ trait MetaData
|
||||
*/
|
||||
public function canFeatureComment( ?Member $member = NULL ): bool
|
||||
{
|
||||
/* Extensions go first */
|
||||
if( $permCheck = Permissions::can( 'featureComment', $this, $member ) )
|
||||
{
|
||||
return ( $permCheck === Permissions::PERM_ALLOW );
|
||||
}
|
||||
|
||||
if( !$this->actionEnabled( 'featureComment', $member ) )
|
||||
{
|
||||
return false;
|
||||
@@ -317,6 +329,12 @@ trait MetaData
|
||||
*/
|
||||
public function canUnfeatureComment( ?Member $member = NULL ): bool
|
||||
{
|
||||
/* Extensions go first */
|
||||
if( $permCheck = Permissions::can( 'unfeatureComment', $this, $member ) )
|
||||
{
|
||||
return ( $permCheck === Permissions::PERM_ALLOW );
|
||||
}
|
||||
|
||||
if( !$this->actionEnabled( 'unfeatureComment', $member ) )
|
||||
{
|
||||
return false;
|
||||
@@ -398,6 +416,12 @@ trait MetaData
|
||||
*/
|
||||
public function canToggleItemModeration( ?Member $member = NULL ): bool
|
||||
{
|
||||
/* Extensions go first */
|
||||
if( $permCheck = Permissions::can( 'toggleItemModeration', $this, $member ) )
|
||||
{
|
||||
return ( $permCheck === Permissions::PERM_ALLOW );
|
||||
}
|
||||
|
||||
if( !$this->actionEnabled( 'toggleItemModeration', $member ) )
|
||||
{
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user