-
Notifications
You must be signed in to change notification settings - Fork 35
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
Wrong link without edit premissions #89
Comments
Thanks for taking the time to report this issue @AljosaB - could you please also tell us when version of SilverStripe and version of Lumberjack you're using? |
SS 4.3.2 and latest Lumberjack. I created a pull request #90 |
Are you able to provide some steps to reproduce? When I set * Swaps the GridField Link out for the SiteTree edit link using {@link SiteTree::CMSEditLink()}.
...
// No permission checks - handled through GridFieldDetailForm
// which can make the form readonly if no edit permissions are available. |
Just set some permissions on holder/listing page (the one with Lumberjack extension applied). For example define "who can edit this page" to administrators group. Then open the page with a user in content editors group and you'll get view buttons in lumberjack gridfield. SS: 4.3.2 |
Linked PRs have been merged, then will be released in CMS 5.3 |
There is GridFieldSiteTreeEditButton that fixes edit link, but if current user doesn't have edit permissions the link is broken because the component is replaced with GridFieldViewButton during performReadonlyTransformation. There sould also be an extended GridFieldViewButton (GridFieldSiteTreeViewButton) that would fix the link.
Note that the permissions here are for the parent record. i.e. you can't edit the parent record, so the gridfield of the children is make readonly.
PRs
The text was updated successfully, but these errors were encountered: