Re: DotNetNuke 4.0 and Security

  •  03-19-2007, 3:56 AM

    Re: DotNetNuke 4.0 and Security

    This is what worked for me.
     
    script runat="server">
     
    Public Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load    
             If    DotNetNuke.Security.PortalSecurity.IsInRoles("Administrators") Then
       gallery1.ShowUpload = true
       gallery1.ShowEditDescription = true
       gallery1.ShowHome = true
       gallery1.ShowUpload = true
    Else
       gallery1.ShowUpload = false
       gallery1.ShowEditDescription = false
       gallery1.ShowHome = false
       gallery1.ShowUpload = false
    End If
    End Sub
    < / script>
View Complete Thread