Changeset 6950 for branches/3.5-stable


Ignore:
Timestamp:
Sep 15, 2015, 8:19:29 AM (6 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #1954: The "Force error" button is visible for jobs even when the user has no permission to use it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.5-stable/www/views/jobs/view_job.jsp

    r6856 r6950  
    164164  // Check if the job can be aborted
    165165  boolean supportsAbort = false;
    166   boolean supportsForceError = status != Job.Status.DONE && status != Job.Status.ERROR;
     166  boolean supportsForceError = writePermission && status != Job.Status.DONE && status != Job.Status.ERROR;
    167167 
    168168  // The status must be executable or EXECUTING
Note: See TracChangeset for help on using the changeset viewer.