kirby-deprecated-plugins / kirby-seo

51 stars 10 forks source link

add checks to permissions to change page URL #44

Open luxlogica opened 7 years ago

luxlogica commented 7 years ago

If the currently logged in user does not have permission to change the URL of the current page, or the page itself has its 'change url' permission set to 'false' in the blueprint, and the user clicks on the page URL link inside the SEO field, it causes a Panel error. This change will simply check whether these permissions are present or not. If they aren't it will change the attributes of the URL link inside the SEO field, so that clicking on it will do nothing - and will no longer cause any errors.

jenstornell commented 7 years ago

Can someone try it out. If it works I will merge it.

luxlogica commented 6 years ago

I have implemented this on 5 separate sites, without any problems.

dennisbaum commented 6 years ago

Works for me. Much better then the error, if the current logged in user is not able to change the URL and get a panel-error...