Preparations
- in IDE:
- open languages/email_template_list template for editing
- replace <inp2:m_if check="m_IsDebugMode"> above the Add toolbar button with <inp2:m_if check="m_CheckPermission" perm_event="email-template:OnPreCreate">
- remove the <inp2:m_if check="m_IsDebugMode"> ... </inp2:m_if> around the Delete toolbar button
- save changes
- open languages/phrase_list template for editing
- wrap the Add toolbar button with <inp2:m_if check="m_CheckPermission" perm_event="phrases:OnPreCreate">...</inp2:m_if> IF
- save changes
- in Admin Console:
- go to the User Management → Administrators section
- create an administrator OR remember username/password of an existing administrator
- go to the User Management → Groups section
- edit admin group
- on the Permissions tab remove the Add and Delete permissions for the Website & Content → Labels & Phrase section
- save changes
Part 1 - the "root" user tag/event meta permission checking
- turn on Debug Mode
- login to Admin Console as root
- go to the Website & Content → E-mail Templates section
- confirm, that:
- the Add toolbar button is visible and working (doesn't give the No Permission error)
- the Delete toolbar button is visible and working (doesn't give the No Permission error)
- turn off Debug Mode
- go to the Website & Content → E-mail Templates section (or reload the page if you're already there)
- confirm, that:
- the Add toolbar button is not visible
- the Delete toolbar button is visible and not working (gives the No Permission error)
- logout
Part 2 - the admin user tag/event meta permission checking
- Same as Part 1, but login using and above-remembered admin user
Part 3 - the "root" user static permission checking
- login to Admin Console as root
- go to the Website & Content → Labels & Phrase section
- confirm, that the Add toolbar button is visible and working (doesn't give the No Permission error)
- confirm, that the Delete toolbar button is visible and working (doesn't give the No Permission error)
- logout
Part 4 - the admin user static permission checking
- login to Admin Console as admin user
- go to the Website & Content → Labels & Phrase section
- confirm, that the Add toolbar button is not visible
- confirm, that the Delete toolbar button is visible and not working (gives the No Permission error)
- logout
Part 5 - the "root" user config section permission checking
- login to Admin Console as root
- go to the Configuration → Website → General section
- confirm, that no error happened
- press the Save toolbar button
- confirm, that no error happened
- logout
Part 6 - the "root" user config section permission checking
- login to Admin Console as admin user
- go to the Configuration → Website → General section
- confirm, that no error happened
- press the Save toolbar button
- confirm, that no error happened
- logout