From f507b2b4a7c9c99e938d3eea4bc0ce65d4c1cdae Mon Sep 17 00:00:00 2001 From: Amigo <49749100+aamigo@users.noreply.github.com> Date: Fri, 26 Jul 2019 08:39:42 +0200 Subject: [PATCH] Updated 036 Setting Site View Permission (markdown) --- 036-Setting-Site-View-Permission.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/036-Setting-Site-View-Permission.md b/036-Setting-Site-View-Permission.md index 73cd274..a2ee6da 100644 --- a/036-Setting-Site-View-Permission.md +++ b/036-Setting-Site-View-Permission.md @@ -31,8 +31,12 @@ Let's look at it at code level. Here is the access file of Sermon Distributor, a [00:08:04](https://www.youtube.com/watch?v=gWjQjdhYqXI&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h08m04s) Now if we go back to the Sermon Distributor component, and again open the Site views, this time I changed it so that it does not have access. It is saved that way. Go to the compiler, compile Sermon Distributor and install. Let's go back to the code. It may be seen that it does not have any of that checks in the Preachers file only in the category file. [00:08:57](https://www.youtube.com/watch?v=gWjQjdhYqXI&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h08m57s) It still redirects to Preachers, which in effect means that this one will no longer give any errors, but it will show these ('COM_SERMONDISTRIBUTOR_NOT_AUTHORISED_TO_VIEW_CATECORIES'),'errors'); errors, which relates to the fact that they cannot see the categories. An advancement that we might consider, is to add a field to the component, where the user can change these errors to show maybe a message of how to purchase access. -### Custom Code Implementation +**Custom Code Implementation** [00:09:35](https://www.youtube.com/watch?v=gWjQjdhYqXI&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h09m35s) -At this stage JCB does have the the option to customize any section of code by using what is known as the Custom Code Implementation. For more detail on this feature, please go to YouTube where it is explained how to change this whole code block and how to use your own implementation upon these measures. [00:10:10](https://www.youtube.com/watch?v=gWjQjdhYqXI&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h10m10s) This was a demonstration how to manage the different permission structures for JCB regarding the site front-end. If you do not want that control, simply just put it off. \ No newline at end of file +At this stage JCB does have the the option to customize any section of code by using what is known as the Custom Code Implementation. For more detail on this feature, please go to YouTube where it is explained how to change this whole code block and how to use your own implementation upon these measures. [00:10:10](https://www.youtube.com/watch?v=gWjQjdhYqXI&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&t=00h10m10s) + +This was a demonstration how to manage the different permission structures for JCB regarding the site front-end and if you do not need that control, simply just put it off. + + \ No newline at end of file