Closed adrianbj closed 4 years ago
sure, so i just made the change like this:
$out = $form->render() . "<p class='version detail'><i class='fa fa-check-square-o'></i> Settings Factory v$moduleInfo[versionStr] | $filepath"; if($this->wire->user->isSuperuser()) $out .= " | <a href='{$this->wire('page')->editUrl}' target='_blank'>Edit Process Settings</a>"; $out .= '</p>';
and need to test it before committing to repo, but should be able to do that soon.
or should i just remove the whole line for non-superusers...
Honestly I think the entire line should probably be removed - it's irrelevant for non-superusers.
Thanks!
Thanks - that's much better!
Hi @outflux3 - what do you think above removing this for non-superusers? Just because a user has access to the settings page, doesn't mean they should be able to edit the Process page - and of course PW won't actually let them edit that page which makes the link even more confusing for them.
Thanks!