40fingers / StyleHelper-Sko

Manipulate DNNCMS HTML, JS and CSS in #dnncms
https://www.40fingers.net/Products/DNN-Stylehelper
7 stars 2 forks source link

CP classes not correctly rendered what a user has edit permissions on a module #14

Closed Timo-Breumelhof closed 2 years ago

Timo-Breumelhof commented 3 years ago

Works fine when a user has edit permissions on the page, but not when a user has only rights on a module on the page

Timo-Breumelhof commented 2 years ago

See: Brian Dukes answer @ https://dnncommunity.org/forums/aft/2519#6984 https://github.com/dnnsoftware/Dnn.Platform/blob/db80b65cfc2fb3920db380c46bdaf6525c1d1f62/DNN%20Platform/Library/UI/ControlPanels/ControlPanelBase.cs#L124-L163

Timo-Breumelhof commented 2 years ago

A new class will be rendered if a user has edit rights on any of the modules on the page: "CP-EditModule". Also with the condition IsUserMode="EditModule" you can now check for that condition.

Timo-Breumelhof commented 2 years ago

Fixed in v 02.15.02