Is there an easy way to make all DNN site pages accessible only to registered users?

I have a DNN site that I now want to change so that users need to be logged in to view any content. I can go to each page to change the permissions, but I'm looking for a faster way - even if that means you are logging into the database.

+3
source share
4 answers

This will remove all "Unauthorized Users" permissions from all pages of the portal:

DELETE
FROM TabPermission
WHERE RoleID = -3 -- Unauthorized Users
AND TabID IN (
    SELECT TabID
    FROM Tabs
    WHERE PortalID = YOUR_PORTALID_HERE
)

Then replace all permissions of "All Users" with "Registered Users":

UPDATE TabPermission
SET RoleID = -2 -- Registered Users
WHERE RoleID = -1 -- All Users
AND TabID IN (
    SELECT TabID
    FROM Tabs
    WHERE PortalID = YOUR_PORTALID_HERE
)

Host β†’ Host Settings Performance "Clear Cache".

ModulePermission, , , , - , - .

, , .. script!

+3

, - , , . , "" > "" ... , .

+2

- TabPermission. , -2 -1 ( DNN) - .

, , . .

You will also want to see the ModulePermissions table.

0
source

You can simply use IIS authorization to do this if you want, but do not provide a "registration".

http://msdn.microsoft.com/en-us/library/aa292114%28VS.71%29.aspx

-1
source

Source: https://habr.com/ru/post/1729313/


All Articles