Add easy reset form to user permission page

KarenS - June 26, 2009 - 15:04
Project:Permissions API
Version:6.x-2.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:ebeyrent
Status:closed
Description

I realize this module is intended to be only an API, but one easy way to illustrate how it works would be to include an example. This code creates a fieldset above the User permissions page that allows you to grant all or revoke all permissions by module and role. It's a pretty simple addition, a very useful feature, and a nice illustration.

I have a bit of css that I use to float these boxes next to each other, which you can use or not.

Also, this patch adds in the 'core = 6.x' line in the .info file which is necessary to even be able to enable it.

AttachmentSize
permissions.patch3.13 KB

#1

KarenS - June 26, 2009 - 15:07

And a screenshot.

AttachmentSize
permission_reset.jpg 56.06 KB

#2

ebeyrent - June 26, 2009 - 16:30

As you said, this is merely an API, provided specifically to help people avoid the access control page. However, I agree with you there there is a need for this.

Maybe the best thing to do would be to add a contrib module called Permissions UI; something to layer on top of the existing access control page. What do you think?

#3

KarenS - June 26, 2009 - 17:01

yep, makes sense to me. Are willing to add it as an extra module within Permissions API? I'm trying to avoid creating and maintaining a new project for such a small thing.

Also, not the missing line in the .info file. I should do a separate patch for that, but didn't have time.

#4

ebeyrent - June 26, 2009 - 17:36

Sounds like a plan. I'll add it as a contrib module within Permissions API.

Permissions UI? Permissions Extra?

#5

ebeyrent - June 26, 2009 - 17:52

Where's the permissions_api.css?

#6

KarenS - June 26, 2009 - 18:04

OK, here is a whole package, called Permissions Reset (since that's all it does).

AttachmentSize
permissions_reset.zip 1.54 KB

#7

ebeyrent - June 26, 2009 - 18:07
Assigned to:Anonymous» ebeyrent

I've committed to cvs, but haven't tried it out yet...

#8

KarenS - June 26, 2009 - 18:28

That was fast :)

#9

ebeyrent - July 19, 2009 - 22:43
Status:needs review» closed
 
 

Drupal is a registered trademark of Dries Buytaert.