workflow releasing datasets
This commit is contained in:
parent
ec127b9457
commit
de80de9d88
18 changed files with 355 additions and 107 deletions
|
@ -36,6 +36,7 @@ class Dataset extends Model
|
|||
'project_id',
|
||||
'embargo_date',
|
||||
'belongs_to_bibliography',
|
||||
'editor_id'
|
||||
];
|
||||
//protected $guarded = [];
|
||||
/**
|
||||
|
@ -94,6 +95,14 @@ class Dataset extends Model
|
|||
return $this->belongsTo(User::class, 'account_id', 'id');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the account that the dataset belongs to
|
||||
*/
|
||||
public function editor()
|
||||
{
|
||||
return $this->belongsTo(User::class, 'editor_id', 'id');
|
||||
}
|
||||
|
||||
public function collections()
|
||||
{
|
||||
return $this
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue