Gitlab Pages - Misalignment of permissions for the same procedure using the API or the UI
Hello,
The API documentation has the following statement from the Pages API - Unpublish pages - documentation
Remove pages. The user must have administrator access.
I am opening this issue because we believe that this is not a feature but a misalignment of permissions for the same procedure using the API or the UI regarding Gitlab Pages.
After testing we noticed that via API only a user with ADMIN rights is able to perform the delete page action (we could not unpublish the page via API using the project token), while using the UI an user with maintainer role is able to perform the delete page action.
In my opinion, if possible, we should settle for the least privileged approach - we should have matching permissions for page deletion via UI and via API.
Best regards,
Paulino Gomes Fernandes.