Skip to content

Add warning when adding macros without a license #110

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

Closed
oanalavinia opened this issue Feb 20, 2023 · 1 comment · Fixed by #111
Closed

Add warning when adding macros without a license #110

oanalavinia opened this issue Feb 20, 2023 · 1 comment · Fixed by #111
Assignees
Milestone

Comments

@oanalavinia
Copy link
Contributor

oanalavinia commented Feb 20, 2023

Since macros are registered independently of an existing license, these can be added to a page even if the license does not yet exists. The macros are not fully functional in this case, because Licensing removes the view right on the macro page.

A message should be displayed to users. This should be done at the code level of each macro.

@oanalavinia
Copy link
Contributor Author

oanalavinia added a commit to oanalavinia/xwiki-pro-macros that referenced this issue Feb 20, 2023
* add error for the XWiki.Macros space
@oanalavinia oanalavinia linked a pull request Feb 20, 2023 that will close this issue
oanalavinia added a commit to oanalavinia/xwiki-pro-macros that referenced this issue Feb 21, 2023
* add license error for the macros in the Confluence.Macros space
oanalavinia added a commit to oanalavinia/xwiki-pro-macros that referenced this issue Feb 21, 2023
* forgot to define parameters for attachments macro
oanalavinia added a commit that referenced this issue Feb 21, 2023
* add license error for the macros defined in the XWiki.Macros and Confluence.Macros spaces
* move the code inside a executeMacro macro and call it only when there is a valid license
@oanalavinia oanalavinia added this to the 1.7.1 milestone Feb 21, 2023
@oanalavinia oanalavinia self-assigned this May 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant