Jump to content


Photo

View permission

user access

  • Please log in to reply
5 replies to this topic

#1 apeisa

apeisa

    Hero Member

  • Moderators
  • 2,530 posts
  • 858

  • LocationVihti, Finland

Posted 09 February 2012 - 07:13 AM

I have stumbled many times for this:
  • I have added new roles (usually created through API)
  • I go to access tab of "extranet_home" template
  • I add view permission for these new roles for that template
  • I test this and user cannot access extranet home page.
This problem is because "view" access need to be added in two places: template access tab and also role needs "view pages" permission. It would be great that it wouldn't be possible to add view access on tab, if that role doesn't have view access at all.

Or other solution (not sure if I understand all the side effects): remove view permission all together. There is no create page permission either, only setting on access tab.

#2 diogo

diogo

    Hero Member

  • Moderators
  • 2,014 posts
  • 1091

  • LocationPorto, Portugal

Posted 09 February 2012 - 07:19 AM

This is also where I have more problems with processwire. I think I gave permission to editors to edit or view a page, but I didn't...

#3 apeisa

apeisa

    Hero Member

  • Moderators
  • 2,530 posts
  • 858

  • LocationVihti, Finland

Posted 09 February 2012 - 07:33 AM

Yep. I think now that when in 2.1. switch was made from page based permission to template based permission all those page view / edit / create permission should be given only on template level. More custom permissions should be there as role based.

#4 diogo

diogo

    Hero Member

  • Moderators
  • 2,014 posts
  • 1091

  • LocationPorto, Portugal

Posted 09 February 2012 - 03:00 PM

Or, when giving permission on page, PW could check the permission on template and tell that for doing this you also have to give permission on template and ask if you want to do it now... then you can have the usual check (...if you do this the pages: blabla, blabla and blabla will also inherit this permission... are you sure you want to?)

#5 ryan

ryan

    Hero Member

  • Administrators
  • 5,780 posts
  • 3125

  • LocationAtlanta, GA

Posted 09 February 2012 - 06:09 PM

page-view permission is supposed to be required of all roles (i.e. an implied permission). Though in testing, I see that it's possible to create a role without giving it page-view permission -- that's a little bug that needs to be fixed. There aren't supposed to be roles without page-view permission just because they wouldn't be very useful. I'll add in some extra code to force this permission to always be present.

#6 apeisa

apeisa

    Hero Member

  • Moderators
  • 2,530 posts
  • 858

  • LocationVihti, Finland

Posted 09 February 2012 - 11:50 PM

Ryan, that would be great!





Also tagged with one or more of these keywords: user access

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users