"Use global policies" in node edit should be "Use default policies"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
AuthPuppy |
Confirmed
|
Undecided
|
gbastien | ||
Ap-node-custom-plugin |
Confirmed
|
Undecided
|
gbastien |
Bug Description
Summary: I've just noticed that "Global Policies" are not applied to any node. I've created a policy called "Validazione" and set it to allow a maximum of 10 minutes of navigation to users who are in "Validation" state, so they won't be able to navigate more than 10 minutes. I've just discovered that this policy is not applied to any of the nodes.
The test I have done:
1) create a user test0101 and set its status to "Validation".
2) connect to a node who uses "Global Policies" and wait 10 minutes. After 10 minutes the user is still able to browse webpages.
Please note that even if "Validazione" is a global policy, it appears available in local policies.
In the attachment you can see two things: the first one is how I've configured the policy, the second one is the configuration of one node.
Workaround: if you edit a node, unselect "Use global policies", select "Validazione" from local policies it WORKS.
Anyway this is clearly a bug.
Hmm actually, it is rather a confusing use of the term "Use global policies"...
You are also using the plugin apNodeCustomPlugin and for this plugin you selected "global policies", but I guess it should read "default policies", which are policies that are used wherever you do not overwrite this choice for a node. I'll change that term in a next release of the nodeCustomPlugin.
But in the node edit page, the checkbox should be interpreted as "Use default policies" and has nothing to do with the global scope of the policies.