-
Deep
How fast ?
-
Deep
Checking XMPP
-
lovetox
is there a way for the server marking a pubsub node as read-only?
-
flow
lovetox, I am not aware of such a marking (but it's pubsub, so it may be somewhere). May I ask what an entity would do with that information, e.g. how it would influence an entities behavior?
-
lovetox
say you have a server connected to ldap
-
lovetox
the server provides vcards with information filled by ldap
-
lovetox
now as a client you show that vcard, but you cant show the user that he is not able to edit that vcard
-
Zash
Is there anything like that anywhere else?
-
Zash
Mostly I think we return an error when you try
-
lovetox
i mean it would probably trivial to hack something together that shows that to the client
-
lovetox
just add a custom attribute to the vcard
-
lovetox
that says LDAP, or Read-only
-
lovetox
whatever
-
flow
hmm I wonder if it would be sensible to have an is-this-pubsub-node-modifiable-by-me IQ query
-
flow
not sure if a server could mark a node as such
-
flow
which would be preferable, of course
-
flow
hmm, but can't you query the node settings and see if you can modify it?
-
lovetox
flow there is no setting that would forbid me to modify my account pubsub node
-
lovetox
as account, i have full publishing permissions on anything
-
flow
lovetox, I would imagine that a service would not allow you to modify a read-only pubsub node (e.g. like a synthesized vcard from ldap, as per your example)
-
flow
so maybe a service could set the access model to whitelist, with the list being empty
-
Zash
surely in such a deployment, not having write access would be fine
-
flow
ahh wait, "access model" seems to be about notification access, not push access
-
lovetox
flow, i never queried the whitelist
-
lovetox
but i imagin it is always empty
-
lovetox
yeah anyway
-
flow
Zash, sure, the question was how a client becomes aware of this. without the client presenting a user a nice dialog where he can modify the node, only to be annoyed to learn that he is not allowed to modify it
-
Zash
Some kind of "who am I to you" query would be nice.
-
Zash
Hm, do current PEP implementations do https://xmpp.org/extensions/xep-0060.html#entity-affiliations ?
-
lovetox
how would that help Zash?
-
Zash
could tell you whether you're _not_ the owner of some node, or otherwise don't have an affiliation that gives publishing rights
-
lovetox
oh
-
lovetox
then i would do this query
-
lovetox
https://xmpp.org/extensions/xep-0060.html#owner-affiliations
-
lovetox
and see that im for example only member
-
lovetox
hm but can a member retrive the affiliations ^✎ -
lovetox
hm but can a member retrive the affiliations ^^ ✏
-
Zash
Confusingly there are two <affiliations/> queries, a normal one and an #owner one.
-
lovetox
no the one you pointed to gives all the affiliations a service offers
-
Zash
The former lets you query a pubsub service for your own affiliations (for all nodes on the service)
-
lovetox
ah
-
lovetox
ok
-
lovetox
i understand
-
lovetox
ok i guess this solves the problem thanks
-
Zash
probably as close as we get without inventing some new feature, yeah