Version 5.0.13

This commit is contained in:
Neo committed 2025-12-19 19:04:57 -08:00
1 parent b89858b2ff
commit 5efe744c5f
1407 files changed
+69690 -30177

No files matched your search

+12 -1
View File
@@ -15,6 +15,7 @@ namespace IPS\Content;
/* To prevent PHP errors (extending class does not exist) revealing path */
use DomainException;
use IPS\Api\Webhook;
use IPS\core\Assignments\Assignment;
use IPS\Data\Cache;
use IPS\Data\Store;
@@ -94,6 +95,12 @@ trait Assignable
return false;
}
/* Extensions go first */
if( $permCheck = Permissions::can( 'assign', $this, $member ) )
{
return ( $permCheck === Permissions::PERM_ALLOW );
}
return $this->containerAllowsAssignable() AND static::modPermission( 'assign', $member, $this->container() );
}
@@ -290,6 +297,8 @@ trait Assignable
$this->save();
}
Webhook::fire( 'content_assigned', $assignment );
return $assignTo;
}
@@ -302,7 +311,9 @@ trait Assignable
{
try
{
Assignment::loadByItem( $this )->close();
$assignment = Assignment::loadByItem( $this );
$assignment->close();
Webhook::fire( 'content_unassigned', $assignment );
}
catch( OutOfRangeException ){}
}