mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-24 18:00:40 +00:00
handle team invitation for non registered user
This commit is contained in:
@@ -31,6 +31,18 @@ class TeamFolderInvitation extends Model
|
||||
|
||||
protected $keyType = 'string';
|
||||
|
||||
public function accept() {
|
||||
$this->update([
|
||||
'status' => 'accepted',
|
||||
]);
|
||||
}
|
||||
|
||||
public function reject() {
|
||||
$this->update([
|
||||
'status' => 'rejected',
|
||||
]);
|
||||
}
|
||||
|
||||
protected static function newFactory(): TeamFolderInvitationFactory
|
||||
{
|
||||
return TeamFolderInvitationFactory::new();
|
||||
|
||||
Reference in New Issue
Block a user