
|
If you were logged in you would be able to see more operations.
|
|
|
The use case is:
- Admin or space admin puts a security restricted macro (like sql macro for instance) is part of a live template.
- User of live-template cannot render the restricted macro on the page using the live-template unless the page has an appropriate edit page restriction
- User is unlikely to have the right permission to run an arbitrary instance of the macro
- Admin should be able to allow the macro to be executed anyway, since the admin is in control of the content and usage of the macro
Once this change is made, the corresponding change will need to be made to the macro security code to recognize this circumstance and act appropriately.
|
|
Description
|
The use case is:
- Admin or space admin puts a security restricted macro (like sql macro for instance) is part of a live template.
- User of live-template cannot render the restricted macro on the page using the live-template unless the page has an appropriate edit page restriction
- User is unlikely to have the right permission to run an arbitrary instance of the macro
- Admin should be able to allow the macro to be executed anyway, since the admin is in control of the content and usage of the macro
Once this change is made, the corresponding change will need to be made to the macro security code to recognize this circumstance and act appropriately. |
Show » |
|
(8:55:16 PM) David Peterson: "net.customware.confluence.scaffolding.live-template" will be either null or a Stack containing a string, either "space" or "global".
(8:55:22 PM) David Peterson: Yes.
(8:56:00 PM) David Peterson: Containing one or more strings, rather.
(8:56:20 PM) David Peterson: The top item on the stack will be the most recent template type to be executed.
(8:56:36 PM) Bob@home: ok, get the stack and check if not null, then check (perhaps) that they are all global if only global are allowed
(8:56:57 PM) David Peterson: Right
(8:57:08 PM) David Peterson: Although you may only want to check that the top-level one is global.
(8:57:12 PM) David Peterson: Depends on your paranoia.
(8:57:18 PM) Bob@home: hmm... in fact would just have to check the last one on stack
(8:57:21 PM) David Peterson: Yes
(8:57:24 PM) Bob@home: ok, agree
(8:57:30 PM) David Peterson: The only reason it's a stack is for technical reasons
(8:58:22 PM) Bob@home: I think that would work fine.