Closed (works as designed)
Project:
Node-level Blocks
Version:
7.x-1.0-beta1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
5 Nov 2013 at 20:21 UTC
Updated:
18 Apr 2014 at 14:41 UTC
Jump to comment: Most recent
Comments
Comment #1
GregSmith104 commentedI was able to cobble something together that seems to work and is somewhat elegant based on the fact that Domain Access uses node_access() to determine what content is available on a given domain.
I created a function to check if the current user has access to the given block if it's a nodeblock...otherwise it just returns TRUE.
I added a call to this function inside of an if check in function template_preprocess_node_level_blocks_fieldset around line 286
Seems to work, but it would be nice to have someone else verify this.
Comment #2
Johnny vd Laar commentedAccess checks in the template layer isn't a good practice. Node level blocks also isn't responsible for hiding nodeblocks. Nodeblock module should take care of this I think.
As I'm the maintainer of both modules I will look into a good solution.
Comment #3
GregSmith104 commentedThanks Johnny :D Everything works perfectly on the front-end with no mods, but de-cluttering the Node-Level blocks admin based on Domain Access rules would be AWESOME!
Comment #4
Johnny vd Laar commented