No more "view/edit permissions" on any content creation pages after module update

autodidactic - July 23, 2008 - 14:42
Project:node privacy byrole
Version:6.x-1.3
Component:Code
Category:support request
Priority:critical
Assigned:autodidactic
Status:closed
Description

I was happily running NPBR in Drupal 6.2 until I saw that there was an update, so I uninstalled and reinstalled the new version. After that I enabled the module but I wasn't getting the "view/edit permissions" on any content creation pages any more. I don't know what went wrong. I tried replacing the module with my backup and that doesn't make any difference either. I also just updated Drupal to 6.3 hoping that might help but still no dice.

PS...I'm new to Drupal and I don't know if I filled out the project/issue information properly for this help request. I listed this as critical since this is for a school site that requires being able to set content for teachers only. If I filled it out incorrectly please let me know and I'll change it.

#1

deekayen - July 23, 2008 - 15:33

If you actually disabled npbr then used the uninstaller, you probably made a mess for yourself because that would have removed all of the permissions set as defaults for content types and specific permissions on nodes. You should just overwrite module files of any kind when you upgrade. Replacing the module files with backups wouldn't have done any good since the uninstall process takes place at the database level.

If you did both disable and uninstall the module and want your old settings, you'll have to go to your database backups and restore the node_access and node_privacy_byrole tables or reset all the content type defaults and node permissions by hand.

To get back the edit permissions fieldset when creating or editing content, you'll need to go edit the permissions for each content type. As an example, the page content type default permissions are at Administer -> Content management -> Content Types -> edit (admin/content/node-type/page) in a collapsed fieldset named "Node privacy by role". You're looking for Roles with rights to update permissions.

#2

autodidactic - July 23, 2008 - 16:10

Thanks for the response. That's good to know about the update process. I know I messed up but I only have a handful of pages created so I don't mind setting permissions again. My bigger concern is that I don't have the option to view/edit permissions when creating or editing content. I also just discovered that on the Post Settings admin page the "Rebuild Permissions" button is also gone. I have a bad feeling about this. I'm hoping that I don't have to do a clean install of the whole CMS but I suppose that if it has to happen, it's better to do it now than when I have a bunch of content put up.

#3

deekayen - July 23, 2008 - 16:19

Check out the edit page of your content types that I pointed to. The "Roles with rights to update permissions" section of the Node privacy by role fieldset will get your permissions settings back when editing nodes.

In Drupal 6, the permission re-build only shows when Drupal identifies an inconsistency with the permissions in the database or when a module specifically marks the permissions "dirty" and queues it for a re-build.

#4

autodidactic - July 23, 2008 - 16:32

deekayen: thanks again for the speedy response.

On the "content types" page there isn't a field for editing permissions. I can't remember if this was always the case but I also looked on the administration page and clicked to view "by module" and npbr isn't listed. It's really strange , but to me it seems that other than being listed on the modules page, this module is not integrated into my site at all.

#5

deekayen - July 23, 2008 - 16:37

On the content types page, each content type has an edit link. Clicking that brings you to where you'll find the default settings for each content type in a collapsed fieldset at the bottom of the page.

#6

autodidactic - July 23, 2008 - 16:45

That's exactly where I'm looking. I've attached a screen shot.

AttachmentSize
1content_types_npbr.jpg 279.73 KB

#7

deekayen - July 23, 2008 - 16:48

That's the page. Now scroll down just a little more and look under Comment settings.

#8

autodidactic - July 23, 2008 - 16:56

Sorry. That portion wasn't on the screen. There isn't anything there.

AttachmentSize
2content_types_npbr.jpg 271.04 KB

#9

deekayen - July 23, 2008 - 18:52

If your modules page says Node Privacy By Role is activated, it looks like something is really screwed up on your install because you're in the right spot and I don't see it either.

#10

autodidactic - August 4, 2008 - 20:41

OK, I did a clean install+NPBR and added modules one by one until the NPBR disappeared. The module "Safari Search" was the culprit! I'm running Drupal 6.2. I tried 6.3 but I ran into some issues with my custom themes. I downgraded to 6.2 because I can't afford to spend any more time troubleshooting. So far so good. I still am deciding on a wysiwyg editor so I'm not out of the woods yet.(I was running FCKeditor when NPBR went belly up originally) I'll be putting up all the content in the next week and I'll report back again.

#11

deekayen - August 4, 2008 - 21:21

Just be aware that the forum module in D6.2 and probably some other things seemingly randomly messed up the node access permissions, which was fixed in 6.3.

#12

cYu - February 13, 2009 - 18:18
Status:active» fixed

#13

System Message - February 27, 2009 - 18:20
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.