Ticket #2432 (closed defect: fixed)

Opened 3 years ago

Last modified 2 years ago

"Add Category" on Write screen should not appear for users who do not have "manage_categories" cap

Reported by: markjaquith Assigned to: markjaquith
Priority: low Milestone:
Component: Administration Version: 2.0.1
Severity: normal Keywords: bg|has-patch bg|commit
Cc:

Description

if a user does not have the "manage_categories" capability, they can attempt to add categories "on the fly" from the Write screen, but they'll get a message saying that they can't. This patch prevents the JS that displays the "add" button and message from even loading for users who lack the capability. Should make the page load faster for them too.

Attachments

hide_add_cat_if_user_cannot_add_cats.diff (434 bytes) - added by markjaquith on 02/12/06 02:19:33.
Patch for current SVN

Change History

02/12/06 02:19:33 changed by markjaquith

  • attachment hide_add_cat_if_user_cannot_add_cats.diff added.

Patch for current SVN

02/12/06 02:19:45 changed by markjaquith

  • status changed from new to assigned.

02/12/06 07:46:36 changed by ryan

  • status changed from assigned to closed.
  • resolution set to fixed.

(In [3516]) Hide add cat if user does not have mange_categories cap. Props Mark Jaquith. fixes #2432

02/19/06 10:52:06 changed by ryan

  • status changed from closed to closed.
  • resolution set to fixed.

(In [3553]) Hide add cat if user does not have mange_categories cap. Props Mark Jaquith. fixes #2432

02/19/06 10:52:21 changed by ryan

  • milestone changed from 2.1 to 2.0.2.

11/30/06 19:41:50 changed by

  • milestone deleted.

Milestone 2.0.2 deleted