             assert generated.names.length is 4
             assert typeof generated.config is 'object'
 
-    describe 'generate, give the relation define', ->
-
-        before ->
+    describe 'generate, when give the relation define, and owner permission is read only', ->
+
+        before ->
+
+            ownerPermission = 'r'
 
             define =
                 staff:

                assert.deepEqual acls.splice(8, 4), acl

                done()

                            type: 'hasMany', model: 'staff', foreignKey: 'staffId'
                job:
                    aclType:
                        owner: ownerPermission
                    name: 'job',
                    plural: 'job',
                    base: 'PersistedModel',
