2019-03-02 11:25:10 +01:00
|
|
|
import UserShareBaseModel from "./userShareBase";
|
2020-03-03 21:02:13 +01:00
|
|
|
import {merge} from 'lodash'
|
2019-03-02 11:25:10 +01:00
|
|
|
|
|
|
|
// This class extends the user share model with a 'rights' parameter which is used in sharing
|
|
|
|
export default class UserNamespaceModel extends UserShareBaseModel {
|
|
|
|
defaults() {
|
|
|
|
return merge(
|
|
|
|
super.defaults(),
|
|
|
|
{
|
2020-04-17 12:19:53 +02:00
|
|
|
namespaceId: 0,
|
2019-03-02 11:25:10 +01:00
|
|
|
}
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|