The correction will bring up a login page if someone tries to submit the form, but it will still display the data to someone who isn't logged in. Still perhaps a security issue?
@Todd it may be helpful for application developers if the permissions declared in the plugin info section were automatically enforced so that it wouldn't be up to the plugin developer to place this check in the plugin settings method.
Is it currently supposed to work like that? What's the "SettingsPermission" => "Garden.Settings.Manage" option do if not this? Would this be a bug, or feature that got overlooked?
Comments
There was an error rendering this rich post.
There was an error rendering this rich post.
I have just tried and you're right. And when you saved, is it effective ?
Is there a way to block the access to non admin users ?
There was an error rendering this rich post.
https://github.com/vanillaforums/Garden/pull/897
@Todd @Tim @Lincoln @Mark
There was an error rendering this rich post.
There was an error rendering this rich post.
if ($Sender->Form->IsPostBack()) {
On my twitter plug, now it immediately goes to a login prompt. Problem solved!
Thanks Lincoln!
Is it currently supposed to work like that?
What's the
"SettingsPermission" => "Garden.Settings.Manage"
option do if not this? Would this be a bug, or feature that got overlooked?There was an error rendering this rich post.