Announcement

#16 2015-04-27 16:58:50

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: Piwigo 2.0 App - Error 401

sebbie, give a new try. I made some changes on Community.

Offline

 

#17 2015-04-27 17:16:21

sebbie
Member
2015-04-27
12

Re: Piwigo 2.0 App - Error 401

Hi Plg,

I've just tested it and it seems to be working fine :)

I will let the people who are having issue know and make them test it to be 100% sure its working.

Will keep you posted.

Many thanks,
Seb

Offline

 

#18 2015-04-27 17:34:46

sebbie
Member
2015-04-27
12

Re: Piwigo 2.0 App - Error 401

Hi Plg,

The users which had errors this morning can upload now, but in the (Upload) tab they still have the message of "Admin Rights Needed" but they can upload with no error 401 anymore.

Is there a way to solve this problem?
I've attached a screenshot

Regards,
Seb

Last edited by sebbie (2015-04-27 17:35:41)

Offline

 

#19 2015-04-27 17:39:46

Olaf
Member
Italy
2015-03-28
15

Re: Piwigo 2.0 App - Error 401

Hi Seb,

that screen will show when the user is not an admin. This is caused by the app not knowing about the Community plugin.

Best regards

Olaf

Offline

 

#20 2015-04-27 17:42:38

sebbie
Member
2015-04-27
12

Re: Piwigo 2.0 App - Error 401

Ahh I see, so theres no way to solve this?
Its not a big issue, but was wondering if its something which can be fixed?

Offline

 

#21 2015-04-28 10:17:41

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: Piwigo 2.0 App - Error 401

sebbie, now it should be OK even on the Upload tab. I have fake the response on pwg.session.getStatus.

I will have to discuss with Olaf and Hoser about how to better handle Community, because some features should be disabled (such as album management, which is not allowed by Community)

Offline

 

#22 2015-04-28 10:58:39

sebbie
Member
2015-04-27
12

Re: Piwigo 2.0 App - Error 401

Hi Plg,

Thank you ever so much for the help.
It works perfectly now and our users are very happy to see a simple design which works well.

Thank you again.

Best Regards,
Seb

Offline

 

#23 2015-04-28 20:52:14

Hoser
Member
Utah
2015-01-14
88

Re: Piwigo 2.0 App - Error 401

Hi Seb,
Sorry that we didn't hit this case before the app was released.

Plg,
I like the idea of the community plugin modifying the pwg.session.getStatus API to send an extra parameter like "hasUploadPermissions". I think that's one of the best ways, that way other extensions could offer the same functionality and the app would respond accordingly.

Offline

 

#24 2015-04-28 20:56:53

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: Piwigo 2.0 App - Error 401

Hoser wrote:

Hi Seb,
Sorry that we didn't hit this case before the app was released.

sebbie could also have hit this case when he beta-tested the new app. But I admit I didn't test the Community case. I should, because it is a very popular plugin (in my opinion it's a "killer feature" for Piwigo).

Offline

 

#25 2015-04-28 20:58:34

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: Piwigo 2.0 App - Error 401

Hoser wrote:

Plg,
I like the idea of the community plugin modifying the pwg.session.getStatus API to send an extra parameter like "hasUploadPermissions". I think that's one of the best ways, that way other extensions could offer the same functionality and the app would respond accordingly.

OK, so here is what I wrote earlier in my email to Hoser:

plg in a mail wrote:

I've always been "faking" admin status for "community users" but on the new iOS app it is a problem because the app is more than just an upload form.

For example, when the user is a "community user", pwg.categories.getList returns only the list of albums where the user can upload photos! Of course this is really disturbing for Piwigo iOS.

What I can do is changing things a little bit: when user_agent matches "^piwigo*iOS*Scale" then Community doesn't change the behavior of pwg.categories.getList and provides a new method pwg.categories.getUploadList for example. This way Piwigo iOS can see if the current album is in this uploadList to offer an upload icon or not.

Community plugin can simply add info in output of pwg.session.getStatus, for example hasUploadPermission=>true, this way you know you can disable some admin features and call pwg.categories.getUploadList.

Offline

 

#26 2015-04-28 22:09:43

Olaf
Member
Italy
2015-03-28
15

Re: Piwigo 2.0 App - Error 401

plg wrote:

Community plugin can simply add info in output of pwg.session.getStatus, for example hasUploadPermission=>true, this way you know you can disable some admin features and call pwg.categories.getUploadList.

When the app sees  "hasUploadPermission=>true" it will only know that the user can upload, not why. This might conflict with the needs of other plugins.

Lets make this plugin specific and call it "communityUpload = true". This way the app will know the community plugin is active and that the current user can upload. The app can manage pwg.categories.getList and pwg.categories.getUploadList and a folder in pwg.categories.getUploadList will get the upload icon. A "false" in the status message will disable any upload feature.

Offline

 

#27 2015-08-15 06:23:03

Michael950
Member
2012-07-14
5

Re: Piwigo 2.0 App - Error 401

Am I missing something here?  I have the app and a community user with upload, and they cannot create albums nor upload via app. 

Was there any progress on this with the iOS application?


[User has permissions in community to create and upload]

Last edited by Michael950 (2015-08-15 06:23:40)

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact