Node creation limit for admin

mkdi - March 7, 2008 - 02:34
Project:Node Family
Version:5.x-1.3
Component:User interface
Category:support request
Priority:critical
Assigned:Unassigned
Status:closed
Description

I am using nodeprofile with nodefamily and can set a maximum population for a specific content type 'say' story to a specific number, for example 5, but when i do so, i as administrator or user1 restrict myself to that limits as well. Any work around, Thanks.

#1

tourtools - September 10, 2008 - 07:56
Priority:normal» critical

I subscribe this request, the superuser cannot be limited in the node creation.

#2

tourtools - September 10, 2008 - 08:41

It's only needed to change nodefamily.module file like this:

original:

298  if ($max == 0 || $uid == 0 ) {
299    return FALSE;
300  }

patched:
298  if ($max == 0 || $uid == 0 || $uid == 1) {
299    return FALSE;
300  }

let me know if you agree with this simple modification.

#3

mkdi - October 14, 2008 - 20:30
Title:Node creation limit per user» Thanks for your comment

I will do that after my 2 weeks holidays.
Thanks once again.

#4

fago - January 9, 2009 - 15:36
Title:Thanks for your comment» Node creation limit for admin
Status:active» fixed

#5

System Message - January 23, 2009 - 15:40
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.