Open ramack opened 6 years ago
Hi @ramack
Here is how Piwigo-Mobile detects the presence of the Community plugin while opening a session:
reflection.getMethodList
to determine whether the Community extension is installed (by detecting the presence of community.session.getStatus
)pwg.session.login
to authenticate the usercommunity.session.getStatus
to determine the real user rights (admin or webmaster).pwg.session.getStatus
to check Piwigo version, get token, available image sizes, upload file types, etc. Set the user rights from this call only when the Community extension is not used.pwg.categories.getList
with parameters cat_id
, recursive
and faked_by_community
. As explained in https://github.com/plegall/Piwigo-community/issues/23 the value of faked_by_community
must be "false" if the Community extension is installed and "true" otherwise.community.categories.getList
to identify albums having upload rightsThe app displays all albums (public and belonging to Community user). The actions proposed to the user then depend on his/her rights: [admin], [upload rights on specific albums] or [none].
Cheers
@EddyLB wrote in #20: I suggest to add Compatibility with the Community plugin (which should have been added to the current list of features of the iOS app). Many users requested it.
@EddyLB can you elaborate what that technically means? And also feel free to submit such kind of proposals directly in a new ticket.