Domain Access update

I haven’t written in a while. Lots of things to do.

Pretty geeked out about the new “beta7″ release of Domain Access. You can read a list of reasons here.

The big one is Domain Access (DA) integration with Organic Groups (OG). What I have done, actually, is write a patch to the node access system. See the full discussion for the background. What the patch does is allow node_access modules in Drupal to link access rules together using AND logic instead of the default OR logic. Look for an official D7 feature request shortly — which is similar to this request — and both approaches need testing.

I also solved some other issues — including batch update of DA rules using the Domain Content module, and some table prefix and data source issues for Domain Prefix. None of it would have happened without the testers (brave souls). So thanks to the following for helping get this release out:

  • grndlvl
  • skizzo
  • canen
  • derjochenmeyer
  • moshub
  • okday
  • lpirotte

And a small apology to MySite users. When I finish the DA work, I will get back to MySite 5.x.3 and the port to Drupal 6.

7 Comments so far
Leave a comment

Check it out in action at http://activote.com currently a live beta. Send me any feed back.

I just have to say thank you for your work on Domain Access thus far.

My own multisite-project may be outside of what you might consider the scope of Domain Access’ Affiliate focus, but with where Drupal seems to be headed, your module(s) may very well end up as the only reasonable multisite method.

Even new to Drupal as I am, I can see the trend to move everything into nodes. And therein lies the problem with the “standard” multisite method of separating tables via prefixes to sub-sites, because each node type doesn’t have its own table.

I’m looking forward to seeing how Domain Access evolves.

Rog-

I’d like to understand more about what you’re trying to do.

Domain Access is cool. One question.

Is there a concept of domain-specific roles for users? User should have the default “authenticated user” role in every affiliate domain and a few other specific roles in particular affiliate domains. When the user visits a node belonging to a domain, her access is automatically determined by the role she has in the container domain the node belongs to. Is there a way to get this effect with DA?

You could, by writing a module that uses the API, but I am not sure that changing roles per domain is a good idea.

The “best” way to solve this is by using the provided hook_domaingrants() to change the default permissions granted to a user. See the provided Domain Strict module for an example of how this is done.

The “edit domain nodes” permissions is designed to replace the “administer nodes” permission for most users. See the documentation.

In my usage scenario, there is a small number of common generic roles across the whole affiliate domains ecosystem, and a very large number of domains, all sharing the same database. Selected parts of a domain’s user/grants/node admin functions need to be delegated to a domain admin (specific to a domain). A authenticated user has access to a node as per the role/grants allotted by the domain admin of the container domain of the node. For example, a domain admin might choose to grant an “author” role for his domain to an authenticated user (which allows that user to create various nodes in that domain) and also withdraw that grant at any time independently of how other domain admins treat that user for their domains.

Thanks a lot for the suggestion. I’ll read about the domaingrants hook. I’m not a very experienced drupalite, so I may be slow on things, thanks for your help again.

Another question: is it known if domain_access and the taxonomy access control module work together in peace using the multiple node access patch?

This is not the best forum for this discussion. Please open an issue for both topics.

http://drupal.org/node/add/project-issue/99990

Unsure about TAC, see http://groups.drupal.org/node/7725 for some background. But it should work. Open an issue and we can report some tests.



Leave a comment
Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

(required)

(required)