<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://hg.omfa.de/prosody-hg/</link>
    <language>en-us</language>

    <title>prosody-hg: plugins/adhoc/adhoc.lib.lua history</title>
    <description>plugins/adhoc/adhoc.lib.lua revision history</description>
    <item>
    <title>mod_adhoc: Remove &quot;mod_&quot; prefix from permission action name</title>
    <link>http://hg.omfa.de/prosody-hg/log/3174308d127e/plugins/adhoc/adhoc.lib.lua</link>
    <description><![CDATA[mod_adhoc: Remove &quot;mod_&quot; prefix from permission action name<br/>
<br/>
Other places doesn't have &quot;mod_&quot; there, why should it here?]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Sun, 02 Apr 2023 21:58:53 +0200</pubDate>
</item>
<item>
    <title>plugins: Prefix module imports with prosody namespace</title>
    <link>http://hg.omfa.de/prosody-hg/log/74b9e05af71e/plugins/adhoc/adhoc.lib.lua</link>
    <description><![CDATA[plugins: Prefix module imports with prosody namespace]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Fri, 24 Mar 2023 13:15:28 +0100</pubDate>
</item>
<item>
    <title>Switch to a new role-based authorization framework, removing is_admin()</title>
    <link>http://hg.omfa.de/prosody-hg/log/9061f9621330/plugins/adhoc/adhoc.lib.lua</link>
    <description><![CDATA[Switch to a new role-based authorization framework, removing is_admin()<br/>
<br/>
We began moving away from simple &quot;is this user an admin?&quot; permission checks<br/>
before 0.12, with the introduction of mod_authz_internal and the ability to<br/>
dynamically change the roles of individual users.<br/>
<br/>
The approach in 0.12 still had various limitations however, and apart from<br/>
the introduction of roles other than &quot;admin&quot; and the ability to pull that info<br/>
from storage, not much actually changed.<br/>
<br/>
This new framework shakes things up a lot, though aims to maintain the same<br/>
functionality and behaviour on the surface for a default Prosody<br/>
configuration. That is, if you don't take advantage of any of the new<br/>
features, you shouldn't notice any change.<br/>
<br/>
The biggest change visible to developers is that usermanager.is_admin() (and<br/>
the auth provider is_admin() method) have been removed. Gone. Completely.<br/>
<br/>
Permission checks should now be performed using a new module API method:<br/>
<br/>
  module:may(action_name, context)<br/>
<br/>
This method accepts an action name, followed by either a JID (string) or<br/>
(preferably) a table containing 'origin'/'session' and 'stanza' fields (e.g.<br/>
the standard object passed to most events). It will return true if the action<br/>
should be permitted, or false/nil otherwise.<br/>
<br/>
Modules should no longer perform permission checks based on the role name.<br/>
E.g. a lot of code previously checked if the user's role was prosody:admin<br/>
before permitting some action. Since many roles might now exist with similar<br/>
permissions, and the permissions of prosody:admin may be redefined<br/>
dynamically, it is no longer suitable to use this method for permission<br/>
checks. Use module:may().<br/>
<br/>
If you start an action name with ':' (recommended) then the current module's<br/>
name will automatically be used as a prefix.<br/>
<br/>
To define a new permission, use the new module API:<br/>
<br/>
  module:default_permission(role_name, action_name)<br/>
  module:default_permissions(role_name, { action_name[, action_name...] })<br/>
<br/>
This grants the specified role permission to execute the named action(s) by<br/>
default. This may be overridden via other mechanisms external to your module.<br/>
<br/>
The built-in roles that developers should use are:<br/>
<br/>
 - prosody:user (normal user)<br/>
 - prosody:admin (host admin)<br/>
 - prosody:operator (global admin)<br/>
<br/>
The new prosody:operator role is intended for server-wide actions (such as<br/>
shutting down Prosody).<br/>
<br/>
Finally, all usage of is_admin() in modules has been fixed by this commit.<br/>
Some of these changes were trickier than others, but no change is expected to<br/>
break existing deployments.<br/>
<br/>
EXCEPT: mod_auth_ldap no longer supports the ldap_admin_filter option. It's<br/>
very possible nobody is using this, but if someone is then we can later update<br/>
it to pull roles from LDAP somehow.]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Wed, 15 Jun 2022 12:15:01 +0100</pubDate>
</item>
<item>
    <title>adhoc: Include stanza and origin in adhoc event data</title>
    <link>http://hg.omfa.de/prosody-hg/log/16a49f04d507/plugins/adhoc/adhoc.lib.lua</link>
    <description><![CDATA[adhoc: Include stanza and origin in adhoc event data<br/>
<br/>
This allows easier access to these, which could be useful for all sorts<br/>
of reasons]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Mon, 06 Mar 2017 15:19:35 +0100</pubDate>
</item>
<item>
    <title>adhoc.lib: Tweak to allow using util.error objects</title>
    <link>http://hg.omfa.de/prosody-hg/log/6b541d3c4c1b/plugins/adhoc/adhoc.lib.lua</link>
    <description><![CDATA[adhoc.lib: Tweak to allow using util.error objects<br/>
<br/>
Since util.stanza supports util.error objects via duck-typing and adhoc<br/>
errors look enough like util.error objects, they should able to pass as<br/>
such.  This will allow converting adhoc commands to use util.error.]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Sun, 31 Jan 2021 21:11:55 +0100</pubDate>
</item>
<item>
    <title>mod_adhoc: Improve permission setting (fix #1482) BC</title>
    <link>http://hg.omfa.de/prosody-hg/log/421b2f8369fd/plugins/adhoc/adhoc.lib.lua</link>
    <description><![CDATA[mod_adhoc: Improve permission setting (fix #1482) BC<br/>
<br/>
Rename 'user' permission mode to 'any' for clarity, too easily mistaken<br/>
for what the 'local_user' setting does.<br/>
<br/>
It is also removed as a default and made a required argument.]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Fri, 20 Dec 2019 22:47:34 +0100</pubDate>
</item>
<item>
    <title>adhoc.lib: Rename other variable to avoid name clash [luacheck]</title>
    <link>http://hg.omfa.de/prosody-hg/log/d88dc6827675/plugins/adhoc/adhoc.lib.lua</link>
    <description><![CDATA[adhoc.lib: Rename other variable to avoid name clash [luacheck]]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Tue, 12 Dec 2017 17:51:12 +0100</pubDate>
</item>
<item>
    <title>Backed out changeset 84c117cdd048, broke things</title>
    <link>http://hg.omfa.de/prosody-hg/log/a6f58305411e/plugins/adhoc/adhoc.lib.lua</link>
    <description><![CDATA[Backed out changeset 84c117cdd048, broke things]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Tue, 12 Dec 2017 17:49:30 +0100</pubDate>
</item>
<item>
    <title>mod_adhoc/adhoc.lib: Rename variable to avoid name clash [luacheck]</title>
    <link>http://hg.omfa.de/prosody-hg/log/84c117cdd048/plugins/adhoc/adhoc.lib.lua</link>
    <description><![CDATA[mod_adhoc/adhoc.lib: Rename variable to avoid name clash [luacheck]]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Tue, 05 Dec 2017 12:32:25 +0100</pubDate>
</item>
<item>
    <title>mod_adhoc/adhoc.lib: instantiate table with all fields</title>
    <link>http://hg.omfa.de/prosody-hg/log/2b91da49285a/plugins/adhoc/adhoc.lib.lua</link>
    <description><![CDATA[mod_adhoc/adhoc.lib: instantiate table with all fields]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Mon, 06 Mar 2017 15:09:22 +0100</pubDate>
</item>
<item>
    <title>mod_lastactivity, mod_legacyauth, mod_presence, mod_saslauth, mod_tls: Use the newer stanza:get_child APIs and optimize away some table lookups</title>
    <link>http://hg.omfa.de/prosody-hg/log/76699a0ae4c4/plugins/adhoc/adhoc.lib.lua</link>
    <description><![CDATA[mod_lastactivity, mod_legacyauth, mod_presence, mod_saslauth, mod_tls: Use the newer stanza:get_child APIs and optimize away some table lookups]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Fri, 04 Jul 2014 22:52:34 +0200</pubDate>
</item>
<item>
    <title>adhoc.lib: Don't build error reply from reply stanza</title>
    <link>http://hg.omfa.de/prosody-hg/log/ebc074918173/plugins/adhoc/adhoc.lib.lua</link>
    <description><![CDATA[adhoc.lib: Don't build error reply from reply stanza]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Wed, 24 Jul 2013 21:49:36 +0200</pubDate>
</item>
<item>
    <title>mod_adhoc: Add support for specifying a default action</title>
    <link>http://hg.omfa.de/prosody-hg/log/4d939d2b1574/plugins/adhoc/adhoc.lib.lua</link>
    <description><![CDATA[mod_adhoc: Add support for specifying a default action]]></description>
    <author>&#70;&#108;&#111;&#114;&#105;&#97;&#110;&#32;&#90;&#101;&#105;&#116;&#122;&#32;&#60;&#102;&#108;&#111;&#114;&#111;&#98;&#64;&#98;&#97;&#98;&#101;&#108;&#109;&#111;&#110;&#107;&#101;&#121;&#115;&#46;&#100;&#101;&#62;</author>
    <pubDate>Thu, 02 Aug 2012 21:28:14 +0200</pubDate>
</item>
<item>
    <title>Hopefully inert commit to clean up logging across a number of modules, removing all cases of concatenation when building log messages</title>
    <link>http://hg.omfa.de/prosody-hg/log/5243b74a4cbb/plugins/adhoc/adhoc.lib.lua</link>
    <description><![CDATA[Hopefully inert commit to clean up logging across a number of modules, removing all cases of concatenation when building log messages]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Mon, 23 Jul 2012 17:32:33 +0100</pubDate>
</item>
<item>
    <title>adhoc.lib: Make some globals local</title>
    <link>http://hg.omfa.de/prosody-hg/log/6f689c155186/plugins/adhoc/adhoc.lib.lua</link>
    <description><![CDATA[adhoc.lib: Make some globals local]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Wed, 18 Jul 2012 21:18:17 +0200</pubDate>
</item>
<item>
    <title>adhoc.lib: Default actions to 'complete' (replacement for rev 52b6901cabb0)</title>
    <link>http://hg.omfa.de/prosody-hg/log/b66e73793cb7/plugins/adhoc/adhoc.lib.lua</link>
    <description><![CDATA[adhoc.lib: Default actions to 'complete' (replacement for rev 52b6901cabb0)]]></description>
    <author>&#75;&#105;&#109;&#32;&#65;&#108;&#118;&#101;&#102;&#117;&#114;&#32;&#60;&#122;&#97;&#115;&#104;&#64;&#122;&#97;&#115;&#104;&#46;&#115;&#101;&#62;</author>
    <pubDate>Fri, 11 May 2012 21:41:47 +0100</pubDate>
</item>
<item>
    <title>Backed out changeset 52b6901cabb0 (to be replaced)</title>
    <link>http://hg.omfa.de/prosody-hg/log/33458e1d84c8/plugins/adhoc/adhoc.lib.lua</link>
    <description><![CDATA[Backed out changeset 52b6901cabb0 (to be replaced)]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Fri, 11 May 2012 21:35:02 +0100</pubDate>
</item>
<item>
    <title>mod_adhoc: Always allow at least the &quot;complete&quot; action</title>
    <link>http://hg.omfa.de/prosody-hg/log/52b6901cabb0/plugins/adhoc/adhoc.lib.lua</link>
    <description><![CDATA[mod_adhoc: Always allow at least the &quot;complete&quot; action]]></description>
    <author>&#70;&#108;&#111;&#114;&#105;&#97;&#110;&#32;&#90;&#101;&#105;&#116;&#122;&#32;&#60;&#102;&#108;&#111;&#114;&#111;&#98;&#64;&#98;&#97;&#98;&#101;&#108;&#109;&#111;&#110;&#107;&#101;&#121;&#115;&#46;&#100;&#101;&#62;</author>
    <pubDate>Fri, 13 Apr 2012 00:39:00 +0200</pubDate>
</item>
<item>
    <title>Monster whitespace commit (beware the whitespace monster).</title>
    <link>http://hg.omfa.de/prosody-hg/log/bc139431830b/plugins/adhoc/adhoc.lib.lua</link>
    <description><![CDATA[Monster whitespace commit (beware the whitespace monster).]]></description>
    <author>&#87;&#97;&#113;&#97;&#115;&#32;&#72;&#117;&#115;&#115;&#97;&#105;&#110;&#32;&#60;&#119;&#97;&#113;&#97;&#115;&#50;&#48;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Sat, 16 Oct 2010 23:00:42 +0500</pubDate>
</item>
<item>
    <title>mod_adhoc: Fix passing data to util.dataforms</title>
    <link>http://hg.omfa.de/prosody-hg/log/66910810a9f7/plugins/adhoc/adhoc.lib.lua</link>
    <description><![CDATA[mod_adhoc: Fix passing data to util.dataforms]]></description>
    <author>&#70;&#108;&#111;&#114;&#105;&#97;&#110;&#32;&#90;&#101;&#105;&#116;&#122;&#32;&#60;&#102;&#108;&#111;&#114;&#111;&#98;&#64;&#98;&#97;&#98;&#101;&#108;&#109;&#111;&#110;&#107;&#101;&#121;&#115;&#46;&#100;&#101;&#62;</author>
    <pubDate>Wed, 01 Sep 2010 22:44:30 +0200</pubDate>
</item>
<item>
    <title>mod_adhoc: Add capability to pass data to forms</title>
    <link>http://hg.omfa.de/prosody-hg/log/c9294e190bb6/plugins/adhoc/adhoc.lib.lua</link>
    <description><![CDATA[mod_adhoc: Add capability to pass data to forms]]></description>
    <author>&#70;&#108;&#111;&#114;&#105;&#97;&#110;&#32;&#90;&#101;&#105;&#116;&#122;&#32;&#60;&#102;&#108;&#111;&#114;&#111;&#98;&#64;&#98;&#97;&#98;&#101;&#108;&#109;&#111;&#110;&#107;&#101;&#121;&#115;&#46;&#100;&#101;&#62;</author>
    <pubDate>Sat, 10 Jul 2010 01:17:07 +0200</pubDate>
</item>
<item>
    <title>mod_adhoc/adhoc.lib: Add copyright header</title>
    <link>http://hg.omfa.de/prosody-hg/log/a5c3a82d677e/plugins/adhoc/adhoc.lib.lua</link>
    <description><![CDATA[mod_adhoc/adhoc.lib: Add copyright header]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Fri, 11 Jun 2010 12:18:27 +0100</pubDate>
</item>
<item>
    <title>mod_adhoc/adhoc.lib: Handle errors according to XEP</title>
    <link>http://hg.omfa.de/prosody-hg/log/0abb73c43bc8/plugins/adhoc/adhoc.lib.lua</link>
    <description><![CDATA[mod_adhoc/adhoc.lib: Handle errors according to XEP]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Fri, 11 Jun 2010 12:17:57 +0100</pubDate>
</item>
<item>
    <title>mod_adhoc: Imported from prosody-modules, thanks Florob!</title>
    <link>http://hg.omfa.de/prosody-hg/log/b3772f9bc359/plugins/adhoc/adhoc.lib.lua</link>
    <description><![CDATA[mod_adhoc: Imported from prosody-modules, thanks Florob!]]></description>
    <author>&#77;&#97;&#116;&#116;&#104;&#101;&#119;&#32;&#87;&#105;&#108;&#100;&#32;&#60;&#109;&#119;&#105;&#108;&#100;&#49;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;&#62;</author>
    <pubDate>Wed, 09 Jun 2010 21:27:43 +0100</pubDate>
</item>

  </channel>
</rss>
