I have 4.6.1 and CVS version of node privacy byrole
I have configured it and it works fine for me as an admin. Defaults are set correct as set in the content configuration.
However, when a site user (not an admin) creates new content all defaults are off..... So new articles are not visible....
Comments
Comment #1
bwynants commentedchanges made:
case 'validate':
if (variable_get('node_privacy_byrole_enabled', FALSE)) {
_node_privacy_byrole_set_defaults($node);//, !$user_has_meta_perm);
}
and
case 'insert':
if (TRUE) {//($user_has_meta_perm) {
node_privacy_byrole_save_permissions($node);
}
break;
this seems to fix it!
Bert
Comment #2
bwynants commentedPlease take only the insert fix, the other piece was correct.....
case 'insert':
if (TRUE) {//($user_has_meta_perm) {
node_privacy_byrole_save_permissions($node);
}
break;
Comment #3
ankur commentedA patch has been committed to HEAD, DRUPAL-4-6.
The solution posted above will work but is not secure. This is because a user who does NOT have the meta-permissions will be able to, if they know how, to manipulate the post variables so that they input permissions different from the default.
To see the committed change, please consult
http://cvs.drupal.org/viewcvs/drupal/contributions/modules/node_privacy_...
-Ankur
Comment #4
ankur commentedAfter careful examination of the issue posted by degerrit at http://drupal.org/node/23301, the committed patch was incorrect.
The statements added for the 'update' case in the function node_privacy_byrole_nodeapi() shouldn't have been added. A fix has been committed to HEAD, DRUPAL-4-6.
Really, it just undoes some of the lines added in the previous commit:
http://cvs.drupal.org/viewcvs/drupal/contributions/modules/node_privacy_...
-Ankur
Comment #5
varr commentedComment #6
(not verified) commentedComment #7
(not verified) commentedComment #8
(not verified) commentedComment #9
(not verified) commentedComment #10
(not verified) commentedComment #11
(not verified) commentedComment #12
(not verified) commented