Hi,

Hopefully this is the correct place to post this:

I setup drupal 4.4 for a company needing a CMS. It looks great and had most of the features we needed, bar multiple roles per user and node level access. I was pretty pleased when I read the 4.5 status report, so decided to checkout drupal-cvs to act as a stopgap between now and the release of 4.5 proper, just so the designers could get the templates and some content posted up.

It is coming along very nicely (congrats to the devs) but I can't work out how to enable the node level access control. It appears to be in the source and the node_access table exists in the database. I just can't tell if it has been hooked into the UI yet.

Has anyone gotten this working?

Comments

briandburnham’s picture

I have been wondering the same thing. I have dug around the gui and database and haven't found anything. I did notice a new key in the node access database table, GID. I wonder it this feature is dependent on the new (broken) group module.

Brian Burnham
http://brianburnham.com

Stefan Nagtegaal’s picture

The node level access control is not present in core (yet), only the opportunity to to get something like this working. (called an api)
You should look at JonBob's Sandbox where you'll find exactly what you need..

The modules are well documented and succesfull in their use..

Good luck with it!

moshe weitzman’s picture

in order for node access control to actually do anything, you have to activate a 'node permission' type module. jonbob has written a couple of these, but they are still quite raw. download one of these: 'nodeperm_role.module', 'nodeperm_taxonomy.module', 'nodeperm_user.module' from this page

j2halibu’s picture

Is it necessary to run the patch in Jonbob's sandbox with the current version of CVS?

jonbob’s picture

No, the .patch and .mysql files have been applied to CVS HEAD. They comprise the API that will be a part of Drupal 4.5.

ssh-1’s picture

Excellent, that really is looking good indeed.

Now I wonder if actual uploaded files can have role based permissions applied to them?

jonbob’s picture

You could do this if the files were represented as or within nodes. Nothing in the Drupal core provides access to uploaded files (if the "private" upload setting is used); modules are responsible for providing access via hook_file_download(). This hook could take care of checking access permissions based on the associated node permissions.

ssh-1’s picture

Thanks for that Jonbob.

I'm going to see about writing a module to do this myself over the coming weeks. For my needs, logging of downloads would be quite important, so some programming is probably going to be necassary. I'll rely on webdav in the meantime.

Will see you on the dev forums in due course no doubt :-)

izelpii’s picture

Hi.

Does this issue has some advance now?

Chris.