-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #23840: Adding property on nodes is not possible with role node_all #5236
Fixes #23840: Adding property on nodes is not possible with role node_all #5236
Conversation
Commit modified |
03b52ff
to
55bebea
Compare
Commit modified |
55bebea
to
6aea3d5
Compare
Commit modified |
6aea3d5
to
1f7c0cb
Compare
</script> | ||
</lift:authz> | ||
<lift:authz role="node_read"> | ||
<script> | ||
hasReadRights = true; | ||
hasReadRightsBackend = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have no idea why for read rights it was working, but not for write...
@@ -4,17 +4,17 @@ <h3 class="page-title foldable" onclick="$('#nodeProp').toggle(); $(this).toggle | |||
<div id="nodeproperties-app" class="portlet-content"></div> | |||
<script data-lift="with-cached-resource" src="/javascript/rudder/elm/rudder-nodeproperties.js"></script> | |||
<script> | |||
var hasWriteRights = false; | |||
var hasReadRights = false; | |||
var hasWriteRightsBackend = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seemed that the write was override by something else, but what.. ? Maybe because this is shared between node group properties?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe the variable should be "CanWriteNode" and "CanReadNode"
var main = document.getElementById("nodeproperties-app") | ||
|var initValues = { | ||
| contextPath : "${S.contextPath}" | ||
| , hasWriteRights : hasWriteRights | ||
| , hasReadRights : hasReadRights | ||
| , hasWriteRights : hasWriteRightsBackend |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you modify it to "hasNodeWrite" ?
PR updated with a new commit |
This PR is not mergeable to upper versions. |
OK, squash merging this PR |
93b83fd
to
9482f91
Compare
https://issues.rudder.io/issues/23840
Javascript....