← Back to team overview

dhis2-devs team mailing list archive

Re: Dashboards not showing up for non-admin users

 

Great.

On Tue, Jan 20, 2015 at 11:12 AM, Sandesh Sukumar Doolipeta <
sandeshd@xxxxxxxxxxxxxxxx> wrote:

> Hi Lars ,
>
>       It is working as expected on the latest build. Thanks :)
>
> On Mon, Jan 19, 2015 at 4:27 PM, Lars Helge Øverland <larshelge@xxxxxxxxx>
> wrote:
>
>> Hi Sandesh,
>>
>> that sounds strange - I was not able to reproduce on
>> https://apps.dhis2.org/dev.
>>
>> Could you please check that the database tables to see if the dashboards
>> actually have 1) a userid set to some user 2) a publicaccess string set to
>> '--------' or some valid not null value ?
>>
>> regards,
>>
>> Lars
>>
>>
>>
>>
>>
>>
>> On Mon, Jan 19, 2015 at 6:24 AM, Sandesh Sukumar Doolipeta <
>> sandeshd@xxxxxxxxxxxxxxxx> wrote:
>>
>>> Hi,
>>>
>>> In the latest build Rev No. 18040, the non-admin users are not able to
>>> view the dashboards which are assigned to their respective user groups.
>>> On investigating further, we figured out that giving paging=false param
>>> to /api/dashboards is causing the problem. This issue only occurs when user
>>> is not a Superuser.
>>>
>>> Here are the responses from the API calls.
>>>
>>> http://localhost:8080/api/dashboards.json?paging=false (Logged in as
>>> test user)
>>> {
>>>
>>>    - dashboards: [ ]
>>>
>>> }
>>>
>>> http://localhost:8080/api/dashboards.json (Logged in as test user)
>>> {
>>>
>>>    - pager: {
>>>       - page: 1,
>>>       - pageCount: 1,
>>>       - total: 1
>>>       },
>>>    - dashboards: [
>>>       - {
>>>          - name: "AFGHANISTAN",
>>>          - id: "b872ws1db3r"
>>>          }
>>>       ]
>>>
>>> }
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> --
>>> *Sandesh Doolipeta**Application Developer*
>>> Emailsandeshd@xxxxxxxxxxxxxxxx
>>> Telephone9686062727
>>> [image: ThoughtWorks] <http://www.thoughtworks.com/>
>>>
>>
>>
>
>
> --
> *Sandesh Doolipeta**Application Developer*
> Emailsandeshd@xxxxxxxxxxxxxxxx
> Telephone9686062727
> [image: ThoughtWorks] <http://www.thoughtworks.com/>
>

References