Prioritize profiles

Darren Oh - March 29, 2007 - 17:12
Project:TinyMCE WYSIWYG Editor
Version:5.x-1.9
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:duplicate
Description

At the moment, TinyMCE uses the profile assigned to the lowest role ID that a user is a member of. This means that if you assign a basic profile to the authenticated user role and a more powerful profile to a more privileged role, users who are members of both roles will see the profile assigned to the authenticated user role.

I thought about reversing this and showing the profile assigned to the highest role ID that the user is a member of, but roles are not always added in order from least privileged to most privileged. So a way of specifying the priority of profiles is needed.

#1

Darren Oh - March 29, 2007 - 22:05
Assigned to:Darren Oh» Anonymous
Status:active» needs review

Here is a patch to allow profiles to be prioritized.

AttachmentSize
tinymce_6.patch 5.59 KB

#2

Darren Oh - March 30, 2007 - 14:28

I missed an SQL query that needed to be changed. Also added an update to the install file.

AttachmentSize
tinymce_7.patch 7.05 KB

#3

m3avrck - May 6, 2007 - 01:14

How does that compare to? http://drupal.org/node/60667

Like to see a consensus before this goes in.

#4

pwolanin - May 6, 2007 - 01:49

Why not simply do it in reverse role ID order, and then hook into the role weights module (if it's installed) if additioanl control is needed?

#5

Darren Oh - May 6, 2007 - 04:47

It was considered, but there was no logical relation between role ID and privilege levels on sites with multiple roles.

#6

flanderz - May 29, 2007 - 01:43

+1 for this approach

#7

flanderz - May 29, 2007 - 01:46

Let me clarify ... +1 for the approach that Darren is suggesting.

#8

Darren Oh - September 21, 2007 - 13:52
Status:needs review» duplicate

Alternative patches are available in duplicate issue 60667.

#9

femrich - September 23, 2007 - 04:13
Version:5.x-1.x-dev» 5.x-1.9

I look forward to seeing this implemented (without patching) in a stable release of TinyMCE. Any idea when that might happen?

#10

TheoRichel - October 11, 2007 - 18:03

And I would very much that the specialists would come to an advice whoich patch we ought to use now, while waiting, waiting for Tiny MCE to solve it finally. I have read the debate and I do not know what to do now.

Thanks

TR

#11

Sophia - November 19, 2007 - 05:45

Subscribing!

#12

husztisanyi - April 2, 2008 - 15:50

#13

Oliver Coleman - January 4, 2009 - 09:21

Here's a remake of the patch in #2 for 5.x-1.9

AttachmentSize
tinymce.install.profile_priority.diff 1.51 KB
tinymce.module.profile_priority.diff 5.15 KB
 
 

Drupal is a registered trademark of Dries Buytaert.