CORD-1605
cleaning privilege model
Change-Id: Ied0f6e3d3493f8b7520ecf9ab6fd83d9a1060d34
diff --git a/xos/core/models/core.xproto b/xos/core/models/core.xproto
index dfe6aa8..6760938 100644
--- a/xos/core/models/core.xproto
+++ b/xos/core/models/core.xproto
@@ -82,14 +82,14 @@
| exists Privilege:Privilege.object_type = obj.object_type
& Privilege.object_id = obj.object_id
& Privilege.accessor_type = "User"
- & Privilege.accessor_id = ctx.user.id
+ & Privilege.accessor_id = ctx.user.id
& Privilege.permission = "role:admin" >
-
+
message Privilege::grant_policy (XOSBase) {
- required int32 accessor_id = 1 [null = False];
+ required int32 accessor_id = 1 [null = False, blank=False];
required string accessor_type = 2 [null = False, max_length=1024];
required int32 controller_id = 3 [null = True];
- required int32 object_id = 4 [null = False];
+ required int32 object_id = 4 [null = False, blank=False];
required string object_type = 5 [null = False, max_length=1024];
required string permission = 6 [null = False, default = "all", max_length=1024, tosca_key=True];
required string granted = 7 [content_type = "date", auto_now_add = True, max_length=1024];