Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Permission for Individual File #1

Open
SkyeHoefling opened this issue Oct 10, 2019 · 3 comments
Open

Add Permission for Individual File #1

SkyeHoefling opened this issue Oct 10, 2019 · 3 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@SkyeHoefling
Copy link
Owner

The Permissions work at a top-level folder only and it makes assumptions from there. The route manager should be able to dissect which file is attempting to render and check specific permissions. Some files such as .html files may not exist and if that is the case the permission system should fall-back to the current folder

@SkyeHoefling
Copy link
Owner Author

Currently if a standard user tries to access a folder in DNN that will be denied unless it is explicitly added. In my testing copying a static html website inside of a portal doesn't automatically add it to the folder table in DNN. This means that all users won't be able to access the file.

I think we can add a workaround where you manually add the row to the Folder table and apply the permissions by hand. This isn't a very good feature and needs a better configuration story

@SkyeHoefling SkyeHoefling added the bug Something isn't working label Jul 29, 2020
@SkyeHoefling SkyeHoefling self-assigned this Jul 29, 2020
@SkyeHoefling
Copy link
Owner Author

Follow the steps below as a workaround

  1. Copy static html files over to desired location. In my example I created a team wiki in portal 0. ~/Portal/0/Wiki/index.html is the root page
  2. Log in to DNN as super user
  3. Go to Manage -> Site Assets
  4. Right-Click on Root and add a new folder called Wiki which matches the folder already created
  5. Select Standard Folder
    image
  6. Once folder is created there will most likely be nothing showing up from the DNN user interface, which is normal. Right click on the folder and select view folder properties
  7. Navigate to permissions and add your role or user to access Browse and Open permissions
    image

@SkyeHoefling SkyeHoefling added documentation Improvements or additions to documentation and removed bug Something isn't working labels Jul 29, 2020
@SkyeHoefling
Copy link
Owner Author

This is working as designed according to DNN specifications. We need to add better documentation around this story. I am updating this work item to a documentation item and it is not a bug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant