public override void SetPermissions(IPermissionDefinitionContext context)
        {
            //TODO: Localize (Change FixedLocalizableString to LocalizableString)

            var root = context.CreateRootGroup("QuestionAndAnswerSystem", new FixedLocalizableString("QuestionAndAnswerSystem"));

            root.CreatePermission("CanCreateQuestions", new FixedLocalizableString("Can create questions"));
            root.CreatePermission("CanDeleteQuestions", new FixedLocalizableString("Can delete questions"));
            root.CreatePermission("CanDeleteAnswers", new FixedLocalizableString("Can delete answers"));
            root.CreatePermission("CanAnswerToQuestions", new FixedLocalizableString("Can answer to questions"), isGrantedByDefault: true);
        }
        public void DefinePermissions(IPermissionDefinitionContext context)
        {
            //Create a root permission group for 'Administration' permissions
            var administration = context.CreateRootGroup("Abp.Zero.Administration", new LocalizableString("Administration", "AbpZero"));

            //Create 'User management' permission under 'Administration' group
            var userManagement = administration.CreatePermission("Abp.Zero.Administration.UserManagement", new LocalizableString("UserManagement", "AbpZero"));

            //Create 'Change permissions' (to be able to change permissions of a user) permission as child of 'User management' permission.
            userManagement.CreateChildPermission("Abp.Zero.Administration.UserManagement.ChangePermissions", new LocalizableString("ChangePermissions", "AbpZero"));
        }
        public void DefinePermissions(IPermissionDefinitionContext context)
        {
            //Create a root permission group for 'Administration' permissions
            var administration = context.CreateRootGroup("Abp.Zero.Administration", new LocalizableString("Administration", "AbpZero"));

            //Create 'User management' permission under 'Administration' group
            var userManagement = administration.CreatePermission("Abp.Zero.Administration.UserManagement", new LocalizableString("UserManagement", "AbpZero"));

            //Create 'Change permissions' (to be able to change permissions of a user) permission as child of 'User management' permission.
            userManagement.CreateChildPermission("Abp.Zero.Administration.UserManagement.ChangePermissions", new LocalizableString("ChangePermissions", "AbpZero"));
        }