Re: More granular security

  •  05-04-2010, 2:48 AM

    Re: More granular security

    Hi frjericho,
     
    authorize the user to upload new images but prevent him from uploading media files
     
    hide the upload control in Insert media dialog only
     
    Open file "CuteSoft_Client\CuteEditor\Dialogs\InsertMedia.aspx"
     
    Find section below
     
    <CE:Uploader id="InputFile" InsertText="ffff" runat="server"></CE:Uploader>
     
    Change to
     
    <div style="visibility: hidden">
            <CE:Uploader ID="InputFile" InsertText="ffff" runat="server">
             </CE:Uploader>
    </div>
     
    allow user to delete images but prevent him from deleting templates
     
    hide the delete button in Insert template dialog only
     
    Open file "CuteSoft_Client\CuteEditor\Dialogs\InsertTemplate.aspx"
     
    Find section below
     
    <asp:ImageButton ID="Delete" runat="server" AlternateText="[[Deletefiles]]" ImageUrl="../Load.ashx?type=image&file=s_cut.gif"
                                                OnClick="Delete_Click" />
     
    change to
     
    <div style="visibility: hidden">
                  <asp:ImageButton ID="Delete" runat="server" AlternateText="[[Deletefiles]]" ImageUrl="../Load.ashx?type=image&file=s_cut.gif"
                                                OnClick="Delete_Click" />
      </div>
     
    allow him to create folders for images but not for templates
     
    Hide the create folder button in Insert template dialog only
     
    Open file "CuteSoft_Client\CuteEditor\Dialogs\InsertTemplate.aspx"
     
    Find section below
     
    <asp:ImageButton id="CreateDir" BorderWidth="1" Runat="server" AlternateText="[[Createdirectory]]"
           ImageUrl="../Load.ashx?type=image&file=newfolder.gif" OnClick="CreateDir_Click" />
     
    Change to
     
     <div style="visibility:hidden">
          <asp:ImageButton id="CreateDir" BorderWidth="1" Runat="server" AlternateText="[[Createdirectory]]"
           ImageUrl="../Load.ashx?type=image&file=newfolder.gif" OnClick="CreateDir_Click" />
         </div>
     
    Regards,
     
    ken
View Complete Thread