|
@@ -55,6 +55,21 @@ module.exports = async (dbName='hipstagram') => {
|
|
|
return {
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ static get defaultPermissions(){
|
|
|
+ return {
|
|
|
+ //savable refs, objectid's, words like 'tags' or 'roles'
|
|
|
+ read: ['owner', 'user'],
|
|
|
+ write: ['owner'],
|
|
|
+ create: ['user'],
|
|
|
+ delete: ['owner'],
|
|
|
+
|
|
|
+ /*permission
|
|
|
+ * TODO: permissions for read and write permissions
|
|
|
+ *
|
|
|
+ */
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
SlicedSavable.addClass(Like)
|
|
|
|