Project:Filter Default
Version:5.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs work

Issue Summary

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

Comments

#1

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

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

#3

Status:active» needs review

here you are

AttachmentSize
filter_default_super_admin.patch 1.88 KB

#4

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

#5

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

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

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

well i'll just keep my patched version :)

#9

One year later, coming back…

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

nobody click here