Assign default permissions on user branches
authorGerrit Code Review <root@osm.etsi.org>
Thu, 29 Aug 2019 10:02:45 +0000 (12:02 +0200)
committerGerrit Code Review <root@osm.etsi.org>
Thu, 29 Aug 2019 10:02:45 +0000 (12:02 +0200)
By default each user should be able to read and update the own user
branch. Also the user should be able to approve and submit changes for
the own user branch. Assign default permissions for this and remove the
old exclusive read protection from the user branches.

groups [new file with mode: 0644]
project.config

diff --git a/groups b/groups
new file mode 100644 (file)
index 0000000..6582984
--- /dev/null
+++ b/groups
@@ -0,0 +1,3 @@
+# UUID                         Group Name
+#
+global:Registered-Users        Registered Users
index 7377e25..026ce6d 100644 (file)
@@ -1,4 +1,9 @@
 [project]
        description = Individual user settings and preferences.
 [access "refs/users/*"]
-       exclusiveGroupPermissions = read
+[access "refs/users/${shardeduserid}"]
+       read = +force group Registered Users
+       push = +force group Registered Users
+       label-Code-Review = -2..+2 group Registered Users
+       label-Verified = -1..+1 group Registered Users
+       submit = +force group Registered Users