@@ -87,9 +87,6 @@ object ModelServerPermissionSchema {
87
87
includedIn(REPOSITORY , REWRITE )
88
88
description(" Destructive write operations that change the history and loses previously pushed changes." )
89
89
90
- permission(FORCE_PUSH ) {
91
- description(" Overwrite the current version. Don't do any merges and don't prevent losing history." )
92
- }
93
90
permission(DELETE )
94
91
permission(WRITE ) {
95
92
description(" Non-destructive write operations that preserve the history." )
@@ -100,6 +97,7 @@ object ModelServerPermissionSchema {
100
97
}
101
98
permission(PUSH ) {
102
99
description(" Add changes to a branch and merge it with the current version." )
100
+ includes(OBJECTS , ADD )
103
101
}
104
102
permission(READ ) {
105
103
includes(LEGACY_USER_DEFINED_ENTRIES , READ )
@@ -116,6 +114,11 @@ object ModelServerPermissionSchema {
116
114
}
117
115
}
118
116
}
117
+
118
+ permission(FORCE_PUSH ) {
119
+ description(" Overwrite the current version. Don't do any merges and don't prevent losing history." )
120
+ includes(PUSH )
121
+ }
119
122
}
120
123
}
121
124
}
@@ -168,6 +171,7 @@ object ModelServerPermissionSchema {
168
171
val resource: PermissionParts get() = Repository (branchRef.repositoryId).resource + BRANCH + branchRef.branchName
169
172
val read: PermissionParts get() = resource + READ
170
173
val write: PermissionParts get() = resource + WRITE
174
+ val rewrite: PermissionParts get() = resource + REWRITE
171
175
val push: PermissionParts get() = resource + PUSH
172
176
val pull: PermissionParts get() = resource + PULL
173
177
val forcePush: PermissionParts get() = resource + FORCE_PUSH
0 commit comments