Skip to content

Trigger build button does nothing while visible when user login to a different team #1883

Closed

Description

@xtremerui

Hi, This is a # Bug Report

If user login to a team and viewing a build page of a public pipeline that from another team, the + button on the top right for triggering build is visible while clicking it does nothing. Since in this case the user has no right to trigger the build (different team), the button should be invisible.

  • Concourse version: 3.7
  • Deployment type (BOSH/Docker/binary): BOSH
  • Browser (if applicable): Chrome
  • Did this used to work? No

Activity

  1. timrchavez commented on Feb 14, 2018

    @timrchavez
    Contributor

    We hit this all the time.

  2. kkallday commented on Mar 20, 2019

    @kkallday

    Yes. We are also noticing this with Concourse 5. When I login as a user that has "Team Viewer" access, I can still see the "+" that allows me to trigger a job. When I click it it doesn't do anything which is correct however, I wouldn't expect the button to be there (see screenshot).
    Screen Shot 2019-03-20 at 10 56 18 AM

  3. jama22 commented on Apr 8, 2019

    @jama22

    The general theme here seems to be "how do we treat actions that you don't have permission to do?".

    We've talked about two strategies in the past:

    1. Hide the action based on your detected role, or
    2. show the anyways and deny you when you attempt the action

    Currently, based on the implementation of the API and the backend (1) is impossible. But hopefully its more likely with the work that @pivotal-jwinters is doing. (2) is probably the only thing we can do in the meantime.

  4. stale commented on Jul 16, 2019

    @stale

    Beep boop! This issue has been idle for long enough that it's time to check
    in and see if it's still important.

    If it is, what is blocking it? Would anyone be interested in submitting a
    PR
    or
    continuing the discussion to help move things forward?

    If no activity is observed within the next week, this issue will be
    exterminated closed, in accordance with our stale issue
    process
    .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions