Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-725

Admin Interface for managing "Permission Types"

    XMLWordPrintable

    Details

    • Additional information:
      Hide

      Implementation plan:
      1. add IsSystem column (0 by default) to PermissionConfig table
      2. place ALTER, used to add new column into "Core" module install/upgrades.sql file
      3. update PermissionConfig table CREATE TABLE statement in "Core" module install/install_schema.sql file
      4. place UPDATE statement in install/upgrades.sql of "Core" module, that will set IsSystem = 1 for all table records
      5. for every module (from in-portal.full profile), that inserts records into PermissionConfig table change INSERT statement to have "1" in that new IsSystem column
      6. perform clean install and verify, that table structure & contents are the same as they were before clean install (after manual table changing)
      7. perform upgrade from 5.1.3 version and verify, that table structure & contents matches the one from clean install at the previous step

      8. create new unit and connect it with PermissionConfig table
      9. field ModuleId should be dropdown with contents selected from Modules table + 2 options "Admin" and "Front" hardcoded in "options" field option
      10. create list/edit templates
      11. create section called "Permission Types" in unit config, that will be displayed after "Modules" grid in "Configuration -> Website" section
      12. assign all permission to that section for "admin" user group
      13. export permission records, that were created for "admin" group from Permissions table into install/install_data.sql file of "Core" module (at correct position, where all permission sqls are)
      14. add sqls from above to install/upgrades.sql file of "Core" module too
      15. add site config under "admin/system_presets/simple" folder, that will hide this new section when simple interface preset is used
      16. translate all needed phrases and then export "Core" module language pack into a separate file (only Admin & Both phrases)
      17. merge exported language pack (only your phrases) into install/english.lang of "Core" module
      18. test install/upgrade and verify that all phrases are in place and new section is visible/hidden when applicable


      hours:
      1. new unit config + templates - 2 h
      2. install/upgrade scripts/phrases - 1 h
      3. testing - 0.5 h

      3.5 h + 0.5 h (since mantis couldn't accept non-integer quote) total

      Show
      Implementation plan: 1. add IsSystem column (0 by default) to PermissionConfig table 2. place ALTER, used to add new column into "Core" module install/upgrades.sql file 3. update PermissionConfig table CREATE TABLE statement in "Core" module install/install_schema.sql file 4. place UPDATE statement in install/upgrades.sql of "Core" module, that will set IsSystem = 1 for all table records 5. for every module (from in-portal.full profile), that inserts records into PermissionConfig table change INSERT statement to have "1" in that new IsSystem column 6. perform clean install and verify, that table structure & contents are the same as they were before clean install (after manual table changing) 7. perform upgrade from 5.1.3 version and verify, that table structure & contents matches the one from clean install at the previous step 8. create new unit and connect it with PermissionConfig table 9. field ModuleId should be dropdown with contents selected from Modules table + 2 options "Admin" and "Front" hardcoded in "options" field option 10. create list/edit templates 11. create section called "Permission Types" in unit config, that will be displayed after "Modules" grid in "Configuration -> Website" section 12. assign all permission to that section for "admin" user group 13. export permission records, that were created for "admin" group from Permissions table into install/install_data.sql file of "Core" module (at correct position, where all permission sqls are) 14. add sqls from above to install/upgrades.sql file of "Core" module too 15. add site config under "admin/system_presets/simple" folder, that will hide this new section when simple interface preset is used 16. translate all needed phrases and then export "Core" module language pack into a separate file (only Admin & Both phrases) 17. merge exported language pack (only your phrases) into install/english.lang of "Core" module 18. test install/upgrade and verify that all phrases are in place and new section is visible/hidden when applicable hours: 1. new unit config + templates - 2 h 2. install/upgrade scripts/phrases - 1 h 3. testing - 0.5 h — 3.5 h + 0.5 h (since mantis couldn't accept non-integer quote) total
    • Change Log Message:
      Created Admin Interface for managing Types of Permissions
    • Story Points:
      1
    • External issue ID:
      898
    • Copy Issue Key:
    • Patch Instructions:

      Patches must be submitted through Phabricator.

      Description

      Create a new section in Admin (under Configuration->Website) called "Permission Types" which will list and allow managing all permissions.

      Use "PermissionsConfig" table, but there is a need for a new field in called "System" which will be SET to 1 for Permission records inserted during the installation so they can NOT be deleted.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                dmitry Dmitry Andrejev [Intechnic]
                Developer:
                Erik Snarski [Intechnic]
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: