Replies: 2 comments
-
So :about while passed and can be used by the template, is more of a ID for the page type.
Is where you set up relationships between user levels and page type IDs If no authorizations are made all users have access, as in :about :users (the edit users in system page) can only be access by someone assigned the role of :admin The association from user to profiles in the tutorial 31 is in init-site
If there is no profile set -:guest, if profile name is admin - is :member and :admin, otherwise is just a :member |
Beta Was this translation helpful? Give feedback.
-
All of that makes sense and it works great. This is really straight forward and a really great way to quickly create an application with permissions. This really makes me happy. Just one point to any noobs following up, whenever you update the add-authorization form you will need to restart Clog for the updates to be usable / see the changes work. That was the other permutation adding complexity to trying to figure out what worked, when and why. Thank you again Rabbi. |
Beta Was this translation helpful? Give feedback.
-
I am moving forward with my small gallery applications and trying to use the Clog Website Project template to learn how to setup routes with permissions.
I believe I understanding most aspects of how permissions work and it is all fairly straight forward. The only part that is giving me problems is understanding what Actions Auth does in the menu. Here is my sample code including the menu and the handler for the gallery menu item:
Basically I am looking to have Apps / Gallery menu item accessible only to logged in users. Authorize t makes sure /gallery is only accessible to authenticated users, that makes sense. What I don't fully underand is the Actions Auth from above and how that relates to who can access / see the menu item. I was under the impression that Actions Auth was something like a group / user profile and that I could create arbitrary ones as necessary, however, it looks like the number of possible Actions Auth entries are tied to the Clog Website Project template and there are only a fixed number of profiles that can be used.
I have read the Auth Objects in the manual and related docs but I cannot find out information on how Actions Auth works.
Does anyone know? Any tips or hints?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions