Snog
Well-known member
I have an application where the node permissions need to be changed from the public side of the site. I have a set of pre-defined permissions that are applied to a node using this..
That part works perfectly, I go into the node permissions and they are changed.
However, the permissions aren't being applied. So, the user groups still have their old permissions.
Looking at the updateContentPermissionsForUserCollection function, the permission cache is suppose to be rebuilt, which I would imagine also applies the changes. But that isn't happening unless I manually save the permissions again in the Admin area.
Am I missing something obvious again?
Code:
$perm_model->updateContentPermissionsForUserCollection($permissions, 'node', $dwInput['node_id'], 2, 0);
That part works perfectly, I go into the node permissions and they are changed.
However, the permissions aren't being applied. So, the user groups still have their old permissions.
Looking at the updateContentPermissionsForUserCollection function, the permission cache is suppose to be rebuilt, which I would imagine also applies the changes. But that isn't happening unless I manually save the permissions again in the Admin area.
Am I missing something obvious again?