Need to restrict submit access

92 views
Skip to first unread message

Lokesh Loki

unread,
Sep 28, 2023, 7:08:02 AM9/28/23
to Repo and Gerrit Discussion
Hi All,

I am using Gerrit 3.8.1 version and trying to restrict users from submission in following case:
-> submit option should be disabled for users even if they have submit permission when change owner and the submitter is same. The intention is to involve minimum of 2 people in a change all the time by restricting the users from merging the code if change owner and submitter is same.

To achieve this i tried following:
inside project -> access -> under specific reference -> added deny for change owner group for submit permission.

At this point i have submit access for this reference and marked as deny for change owner but it is not working as expected as submit option is still enabled for my own change. Does Change Owner group helps in achieving this use case or if is there any other solution that can help me out , please do share the instructions for it.

Thanks and Regards,
Lokesh

David Åkerman

unread,
Sep 29, 2023, 6:15:27 AM9/29/23
to Repo and Gerrit Discussion
Hi Lokesh,

This can be solved by a submit-requirement https://gerrit-review.googlesource.com/Documentation/config-submit-requirements.html. The example with non-uploader may be what you are looking for.

Best regards,
David
 

Lokesh Loki

unread,
Oct 2, 2023, 1:00:45 PM10/2/23
to Repo and Gerrit Discussion
Hi ,

Kindly please have a look at my query and assist on how it can be acheived ?

Thanks and Regards,
Lokesh

--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/2783c1dd-5068-4574-981f-90d7c13e32aan%40googlegroups.com.

Lokesh Loki

unread,
Oct 3, 2023, 2:35:08 AM10/3/23
to Repo and Gerrit Discussion
It worked , Thank you so much :)
Reply all
Reply to author
Forward
0 new messages