Restrict Web User access based on location

Hi,

it seems like restriction for web users based on their location haven’t
been added to AsyncLocationFilter. So currently even if we have checked
"Restrict Web User access based on location" in "Web Users & Roles"
screen, and web user has location specified, this user still can see
data from all locations. I remember that before migrating to Filters,
with AsyncLocationField this dropdown was getting disabled so one
couldn’t access information from other locations. Was this a desired
omission or would it be good to add it back?

Currently we are preparing support for multiple locations per user for
our client (Cory confirmed it would be ok to add it). So concerning
missing restriction functionality - does it make sense to modify loading
locations to the filter so it only loads locations to which user have
access? As it seems that just making the filter disabled only makes
sense with single location per user.

Best regards
Pawel

Hi Pawel,

Hi,

it seems like restriction for web users based on their location haven’t
been added to AsyncLocationFilter. So currently even if we have checked
"Restrict Web User access based on location" in “Web Users & Roles” screen,
and web user has location specified, this user still can see data from all
locations. I remember that before migrating to Filters, with
AsyncLocationField this dropdown was getting disabled so one couldn’t
access information from other locations. Was this a desired omission or
would it be good to add it back?

I believe that this is an oversight, and it should be added back.

Currently we are preparing support for multiple locations per user for our
client (Cory confirmed it would be ok to add it). So concerning missing
restriction functionality - does it make sense to modify loading locations
to the filter so it only loads locations to which user have access? As it
seems that just making the filter disabled only makes sense with single
location per user.

Yeah, just limiting the results to the choices they have access to seems
like a good approach.

cheers,
Cory

··· On Fri, Apr 25, 2014 at 11:36 AM, Paweł Reise wrote:

Best regards
Pawel

— You received this message because you are subscribed to the Google
Groups “CommCare Developers” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.