You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On branch prefix_perms
Your branch is up to date with 'origin/prefix_perms'.
Changes to be committed:
modified: config/services.py
modified: prefix/apis.py
modified: prefix/models.py
modified: prefix/selectors.py
modified: prefix/services.py
description="User for permissions to be modified",
54
+
),
55
+
"permissions": openapi.Schema(
56
+
type=openapi.TYPE_ARRAY,
57
+
description="List of permissiosn to apply",
58
+
items=openapi.Schema(
59
+
type=openapi.TYPE_STRING
60
+
)
61
+
)
62
+
63
+
}
64
+
)
65
+
66
+
PREFIX_MODIFY_SCHEMA=openapi.Schema(
67
+
type=openapi.TYPE_ARRAY,
68
+
title="Prefix Modify Schema",
69
+
items=openapi.Schema(
70
+
type=openapi.TYPE_OBJECT,
71
+
required=["prefix"],
72
+
properties={
73
+
"prefix": openapi.Schema(
74
+
type=openapi.TYPE_STRING,
75
+
description="The Prefix to be modified.",
76
+
example="test"
77
+
),
78
+
"description": openapi.Schema(
79
+
type=openapi.TYPE_STRING,
80
+
description="A description of what this prefix should represent. For example, the prefix 'GLY' would be related to BCOs which were derived from GlyGen workflows.",
81
+
example="Test prefix description."
82
+
),
83
+
"user_permissions": USER_PERMISSIONS_SCHEMA,
84
+
"public": openapi.Schema(
85
+
type=openapi.TYPE_BOOLEAN,
86
+
description="Flag to set permissions.",
87
+
example=True
88
+
)
89
+
},
90
+
)
91
+
)
92
+
44
93
classPrefixesCreateApi(APIView):
45
94
"""
46
95
Create a Prefix [Bulk Enabled]
@@ -53,7 +102,7 @@ class PrefixesCreateApi(APIView):
@@ -128,11 +185,12 @@ class PrefixesDeleteApi(APIView):
128
185
129
186
# Deletes a prefix for BCOs.
130
187
--------------------
131
-
The requestor *must* be in the group prefix_admins to delete a prefix.
132
-
133
-
__Any object created under this prefix will have its permissions "locked out." This means that any other view which relies on object-level permissions, such as /api/objects/drafts/read/, will not allow any requestor access to particular objects.__
134
-
188
+
The requestor *must* be the prefix owner to delete a prefix.
135
189
190
+
__Any object created under this prefix will have its permissions
191
+
"locked out." This means that any other view which relies on object-level
192
+
permissions, such as /api/objects/drafts/read/, will not allow any
0 commit comments