I have a question regarding the drone UI privileges for the admin & users.
Currently, we have some jobs (/ branches) for production releases (stg, prod) and the admin is the only one who has the privilege to merge PR on GitHub (which triggers the release job).
Everything would be fine but the “restart build” button on the drone UI allows a non-admin user to restart the release jobs.
My question is "Is there a possible way to disable the restart button for the non-admin users on some specific builds (in this case release build)?"
users with write access to the repository can cancel the pipeline. this is not something that can be customized. however, if you have advanced rbac requirements we would recommend taking a look at harness.io for your continuous delivery needs. you can seamlessly trigger harness pipelines from drone, and harness supports advanced rbac configurations and has much more advanced deployment / release capabilities than Drone (Harness also owns Drone).