mirror of
https://github.com/bjc/prosody.git
synced 2025-04-04 13:47:41 +03:00
mod_pep, util.pubsub: Rename restricted->outcast, none->member and add new 'none' affiliation to better match XEP-0060
This commit is contained in:
parent
674da5cef0
commit
7df3613768
2 changed files with 26 additions and 7 deletions
|
@ -171,12 +171,9 @@ function get_pep_service(username)
|
|||
access_models = {
|
||||
presence = function (jid)
|
||||
if subscription_presence(username, jid) then
|
||||
-- This is their affiliation level which determines
|
||||
-- permissions, it is acceptable to be a subscriber
|
||||
-- with no affiliation.
|
||||
return "none";
|
||||
return "member";
|
||||
end
|
||||
return "restricted";
|
||||
return "outcast";
|
||||
end;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue