1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Custom-added Permissions cannot be saved

Custom-added Permissions cannot be saved

8 posts, 1 answered
  1. jkregala
    jkregala avatar
    159 posts
    Registered:
    22 Sep 2009
    08 Jul 2010
    Link to this post
    I mapped the controls that enable permissions and uncommented the part that's supposed to be uncommented and fixed the configuration file to include the lines that point to the added controls. So in effect, these appeared, which is great:
    Approve
    Publish
    However, when I try to save the permissions on a certain role, I noticed that it does not save and therefore the permissions are not committed.

    What could be wrong? Thanks :)
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    08 Jul 2010
    Link to this post
    Hi jkregala,

    There is similar issue with PermissioSet control which manage page/module rights. Most probably there is some inheritance from another role and your settings are overridden.

    You could also provide some more details about which template you have mapped and where you are setting these permissions.

    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. jkregala
    jkregala avatar
    159 posts
    Registered:
    22 Sep 2009
    08 Jul 2010
    Link to this post
    Let's have the Blogs module as an example, I added the Blogs Permissions View control. On my ...ControlsConfig.xml file, I have mapped the control with the following code:

    <!--Provides user interface for managing permissions in the blogs module.-->
    <viewSettings hostType="Telerik.Blogs.WebControls.Admin.BlogsPermissionsView" layoutTemplatePath="~/Sitefinity/Admin/ControlTemplates/Blogs/BlogsPermissionsView.ascx" />

    Then on the directory specified, I copied the control alongside with its codebehind (the codebehind is on the App_LocalResources folder). Then I uncommented the lines of code on the control that should be uncommented.

    The result is that as I've stated before, the options for extra permissions are viewable but that's just it, they're there but it seems that the functionality is absent, like a non-working robot.
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    08 Jul 2010
    Link to this post
    Hello jkregala,

    1. Code behind of a control cannot be in App_LocalResources. This folder is used for resx files not for code behind.

    2. The issue cannot be reproduced locally - sample video has been attached.

    3. The permissions you are setting are active only when you use workflow - allowWorkflow should be set to true for blogs provider.

    All the best,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
    Answered
  5. jkregala
    jkregala avatar
    159 posts
    Registered:
    22 Sep 2009
    08 Jul 2010
    Link to this post
    1. Code behind of a control cannot be in App_LocalResources. This folder is used for resx files not for code behind.

    Oh I meant the .resx file sorry.

    I'll check on the video, thanks :)
  6. jkregala
    jkregala avatar
    159 posts
    Registered:
    22 Sep 2009
    08 Jul 2010
    Link to this post
    Thank you Ivan!

    This solved my problem:

    3. The permissions you are setting are active only when you use workflow - allowWorkflow should be set to true for blogs provider.

    I realized that the allowWorkflow attribute is default to "False" on the web.config file. Thanks :)
  7. jkregala
    jkregala avatar
    159 posts
    Registered:
    22 Sep 2009
    08 Jul 2010
    Link to this post
    By the way, apart from the Generic Content, News, Blogs and Libraries, can this effect be also achieved on the remaining modules?
  8. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    08 Jul 2010
    Link to this post
    Hello jkregala,

    Workflow is available only for Generic Content based modules (except for Wiki). Modules like Polls and Lists do no support Workflow.

    Regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Register for webinar
8 posts, 1 answered