diff --git a/4a.-JCB-Demo-Component-Directory,-Folders-and-Files.md b/4a.-JCB-Demo-Component-Directory,-Folders-and-Files.md index 95c88ba..b84ba7d 100644 --- a/4a.-JCB-Demo-Component-Directory,-Folders-and-Files.md +++ b/4a.-JCB-Demo-Component-Directory,-Folders-and-Files.md @@ -314,7 +314,7 @@ There is a caveat in the demo that must be taken into consideration. From the ad This Tweak to the Dynamic Get in JCB for the Demo component site view looks Dynamic Get, getListQuery extends it to only include records from the table that are created by the user having the same id as the current user, available from the site view looks $this variable, user id element in the form. The change takes effect once you use JCB to compile the component and install it again using the Joomla! extension installer. The same Tweak is required in the site view looking Dynamic Get, getItem. -It is also important that you ensure only certain actions are allowed for certain users. In our case, a Registered User should only be allowed to Save, Save and Close, and Close when done editing their own look records. Super Administrators by default are allowed all actions on the admin view. To restrict a Registered user's actions to allow only Save, Save and Close, and Close . +Doing the above also ensures only certain actions are allowed for certain users. In our case, a Registered User should only be allowed to Save, Save and Close, and Close when done editing their own look records. Super Administrators by default are allowed all actions on the admin view. Performing the previous instructions also restricts a Registered user's actions to allow only Save, Save and Close, and Close the previous instructions. If you add more permissions, more actions will be allowed such as save and copy. Experiment with the JCB Demo component Joomla! ACL permissions and you can see the effect on what edit buttons appear since components do not need to be compiled using JCB to change these settings. Continuing with the edit functionality: * Edit the look record in the demo_look table, reusing the adminForm form to do so