Default for super-admin

David Latapie - September 13, 2007 - 04:14
Project:Filter Default
Version:5.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs work
Description

I am working as superadmin (yes, they say it is bad) and I have exactly the kind of annoyance you are talking about (the burden of manually selecting the default each time). The module is great for “regular roles”, but doesn't work with super-admin (ID: 1, the very first role created, at install time).

Any plan to insert support for super-admin? Thank you

#1

David Latapie - September 13, 2007 - 04:45

I used what I consider a hack (but your mileage may vary): I created a “super-admin” role that I plan to use only for user 1 and gave it the chosen default input format.

Why I consider it a hack:

  • There will never be more than one super-admin, by definition (there is only one user 1). But this role could be given to several people, which should not be allowed
  • I had to create this role, which I should not have to. Super-admin should be a default role, like authenticated user and anonymous user. I don't want just any authenticated user to be able to enter whatever code they want!
  • First, I created a fourth account (because I already had an “administrator” role, as suggested in Drupal Cookbook (for new Drupallers) — B. Basic Configuration). Then I created a fourth role, but whatever name I’d give it, I could not make the default input work (>specified input format< is not allowed for user super-admin). I then deleted it, rename the third role “super-admin”, tied it to user 1 and everything ran fine. Looks like a bug.

#2

guardian - February 24, 2008 - 08:55

subscribing, would be need indeed to have it for user 1 as well

#3

guardian - April 17, 2008 - 22:11
Status:active» needs review

here you are

AttachmentSize
filter_default_super_admin.patch 1.88 KB

#4

guardian - September 25, 2008 - 09:43

the patch doesn't apply anymore
too bad nobody looked at it :/

#5

chellman - September 25, 2008 - 18:54
Status:needs review» needs work

I have to admit that I don't consider the creation of an administrator role, and assigning yourself to it, a hardship or a hack. User #1 is a special user, and the user who is expected to do all the initial configuration of the site, so adding oneself to a newly-created role doesn't seem like a bad thing.

I am, of course, willing to consider other opinions if others want to chime in.

#6

guardian - September 26, 2008 - 11:47

well i see what you mean,
it's just that in my setup i'm sometimes editing posts as super admin because i'm already logged in

#7

chellman - September 26, 2008 - 16:05

I recommend, for now at least, giving your user #1 account a role that has a default filter that you find useful, or just create a new role just for this purpose.

#8

guardian - September 26, 2008 - 19:28

well i'll just keep my patched version :)

#9

David Latapie - June 27, 2009 - 22:07

One year later, coming back…

Drupal 7 (dev) has an administrator role per default. This is not super-admin, though.

 
 

Drupal is a registered trademark of Dries Buytaert.