Added Permission by Role

neofactor - February 23, 2005 - 16:14
Project:Htmlarea
Version:HEAD
Component:Code
Category:feature request
Priority:normal
Assigned:neofactor
Status:needs review
Description

Added permission "use htmlarea"

If the user's role has this permission the following occur:
1) they see the "Use Rich Text Editor" option in the user settings
2) they see the HTMLarea if the above is selected and the page is in the list of pages to use htmlarea.

I added this because I have plaugins ImageManager and InsertFile which give HTMLarea users control over my files area.

Future Plans:
The next logical step is to add permissions by plugin, as well as a new Input Filter check to turn HTMLarea on only if they have an input filter called "Rich Text Edior" A user could control each area's input if the settikngs allow that page to use it. Would give more granular control.

AttachmentSize
htmlarea_1.module35.17 KB

#1

gordon - February 24, 2005 - 00:41

Can you please submit a patch. a patch is much easier to check see what you have changed. use the following command

cvs diff -u -F^f

and this will show you what has changed and allow us to see it easily.

#2

neofactor - February 24, 2005 - 18:40

I tried to create a diff of the two files, but I get a huge file that seems so unlike the normal patch files I see here.

Please help me (and others)out:
From my Mac Terminal line I tried to do a basic diff on two files:
diff -u -F^f htmlarea.module.new htmlarea.module.base

But I get back a large output.

I will attach the two files. I get the same thing with CVS diffs as well lagainst my sandbox.

I would appreciate your help so I can do the correct format for future patches.

Thanks
:) David

AttachmentSize
patch_0.zip 14.91 KB

#3

neofactor - February 26, 2005 - 23:42

OK...

I made a completely new file in Text Editor and created a new file that seemed to diff correctly.
Here is the patch from that diff: HTMLarea_Permission_By_Role.patch

AttachmentSize
HTMLarea_Permission_By_Role.patch 1.18 KB
 
 

Drupal is a registered trademark of Dries Buytaert.