Invalid permission bypass for super user

Created on 14 October 2016, over 8 years ago
Updated 11 October 2024, 4 months ago

We noticed currently that Drupal user 1 is not allowed to bypass hide_submit functionality.

Please find attached the patch.

🐛 Bug report
Status

RTBC

Version

2.0

Component

Code

Created by

🇲🇩Moldova sorinb

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇬🇧United Kingdom aaron.ferris

    I like the latest patch, I can't think of a scenario where we wouldn't want user 1 to be able to bypass hide submit. This could be simplified, but if the previos testing has passed im loathed to change it at this point.

    Tested on D7, latest version of the 7.x branch with this patch.

    Works as I would expect, for user/1 the hide/disable functionality isn't applied on submit. For a non user 1 user without the bypass permission, submit buttons are hidden/disabled as expected.

    Thanks everyone for working on this.

    • 6747a8cc committed on 7.x-2.x
      Issue #2818399: allow user 1 to bypass the hide functionality
      
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024