<feed xmlns='http://www.w3.org/2005/Atom'>
<title>markzz/aurweb.git/web/lib/acctfuncs.inc.php, branch v3.4.2</title>
<subtitle>aurweb working repository</subtitle>
<id>https://git.markzz.net/markzz/aurweb.git/atom/web/lib/acctfuncs.inc.php?h=v3.4.2</id>
<link rel='self' href='https://git.markzz.net/markzz/aurweb.git/atom/web/lib/acctfuncs.inc.php?h=v3.4.2'/>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/'/>
<updated>2014-07-29T12:39:10Z</updated>
<entry>
<title>Suppress PHP notice in process_account_form()</title>
<updated>2014-07-29T12:39:10Z</updated>
<author>
<name>Lukas Fleischer</name>
<email>archlinux@cryptocrack.de</email>
</author>
<published>2014-07-29T12:36:14Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=4b5f8da5be84b10d502866ce49e83c0aa913f1fe'/>
<id>urn:sha1:4b5f8da5be84b10d502866ce49e83c0aa913f1fe</id>
<content type='text'>
Add a check to remove a notice which is displayed after registration
since commit 03c6304 (Rework permission handling, 2014-07-15).

Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
<entry>
<title>Do not allow regular users to edit all accounts</title>
<updated>2014-07-25T09:30:33Z</updated>
<author>
<name>Lukas Fleischer</name>
<email>archlinux@cryptocrack.de</email>
</author>
<published>2014-07-25T09:24:53Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=34aa226c6608f511694b6d5d44fbddb30e4c945a'/>
<id>urn:sha1:34aa226c6608f511694b6d5d44fbddb30e4c945a</id>
<content type='text'>
Fixes a regression introduced in 03c6304 (Rework permission handling,
2014-07-15).

Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
<entry>
<title>Clean up user references in user_delete()</title>
<updated>2014-07-25T09:30:32Z</updated>
<author>
<name>Lukas Fleischer</name>
<email>archlinux@cryptocrack.de</email>
</author>
<published>2014-07-25T08:28:15Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=f4ee1278e5509c531675828dc8fce78ae1a608b9'/>
<id>urn:sha1:f4ee1278e5509c531675828dc8fce78ae1a608b9</id>
<content type='text'>
Explicitly clean up all references before deleting a user.

Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
<entry>
<title>Add a new user group "Trusted User &amp; Developer"</title>
<updated>2014-07-15T20:58:57Z</updated>
<author>
<name>Lukas Fleischer</name>
<email>archlinux@cryptocrack.de</email>
</author>
<published>2014-07-15T20:49:18Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=3610f3c6a4e37f79139ffb38eebf0d00cd6add6d'/>
<id>urn:sha1:3610f3c6a4e37f79139ffb38eebf0d00cd6add6d</id>
<content type='text'>
This group has full permissions on everything.

Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
<entry>
<title>Disallow privileged users to use invalid user names</title>
<updated>2014-07-15T20:56:57Z</updated>
<author>
<name>Lukas Fleischer</name>
<email>archlinux@cryptocrack.de</email>
</author>
<published>2014-07-15T20:17:57Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=1b901616dc355cbab286ece18ca2c9c9e19d3415'/>
<id>urn:sha1:1b901616dc355cbab286ece18ca2c9c9e19d3415</id>
<content type='text'>
Prevent Trusted Users and developers from accidentally using a name that
contains invalid characters. Also, remove user_is_privileged() which is
no longer needed after this change.

Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
<entry>
<title>Rework permission handling</title>
<updated>2014-07-15T20:56:57Z</updated>
<author>
<name>Lukas Fleischer</name>
<email>archlinux@cryptocrack.de</email>
</author>
<published>2014-07-15T18:52:54Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=03c6304e19d5d3ecd276dd3f42220db301ab511d'/>
<id>urn:sha1:03c6304e19d5d3ecd276dd3f42220db301ab511d</id>
<content type='text'>
Add a new function has_credential() that checks whether the currently
logged in user is allowed to perform a given action. Moving all
permission handling to this central place makes adding new user groups
and adjusting permissions much more convenient.

Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
<entry>
<title>acctfuncs.inc.php: Fix indentation</title>
<updated>2014-06-05T13:16:34Z</updated>
<author>
<name>Lukas Fleischer</name>
<email>archlinux@cryptocrack.de</email>
</author>
<published>2014-06-05T13:16:13Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=5463bdeff65681f58605e982f9da9cf9be362929'/>
<id>urn:sha1:5463bdeff65681f58605e982f9da9cf9be362929</id>
<content type='text'>
Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
<entry>
<title>acctfuncs.inc.php: Reduce nesting in several functions</title>
<updated>2014-06-05T13:12:10Z</updated>
<author>
<name>Lukas Fleischer</name>
<email>archlinux@cryptocrack.de</email>
</author>
<published>2014-06-05T12:56:31Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=1aec9f712462f89d5676de57327761941f6d0163'/>
<id>urn:sha1:1aec9f712462f89d5676de57327761941f6d0163</id>
<content type='text'>
Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
<entry>
<title>Do not return "None" in user functions</title>
<updated>2014-06-05T13:12:10Z</updated>
<author>
<name>Lukas Fleischer</name>
<email>archlinux@cryptocrack.de</email>
</author>
<published>2014-06-05T12:47:38Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=0a66f48aa1293f93579b7de9bc5d080cf5f3105e'/>
<id>urn:sha1:0a66f48aa1293f93579b7de9bc5d080cf5f3105e</id>
<content type='text'>
Return null instead of the string "None" in username_from_id(),
uid_from_email() and uid_from_username().

Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
<entry>
<title>Accept upper case letters in valid_username()</title>
<updated>2014-05-30T07:32:48Z</updated>
<author>
<name>Lukas Fleischer</name>
<email>archlinux@cryptocrack.de</email>
</author>
<published>2014-05-30T07:32:48Z</published>
<link rel='alternate' type='text/html' href='https://git.markzz.net/markzz/aurweb.git/commit/?id=e018670607ce6491163fbefb8eb84eec8588bf7b'/>
<id>urn:sha1:e018670607ce6491163fbefb8eb84eec8588bf7b</id>
<content type='text'>
In commit 0722f46 (Simplify valid_user() and valid_username(),
2014-02-06), the conversion to lower case letters was unintentionally
removed and in consequence, names with upper case letters have been
rejected since then.

Instead of reintroducing the conversion, add the "i" modifier to the
regular expression validating the name to do case-insensitive pattern
matching.

Signed-off-by: Lukas Fleischer &lt;archlinux@cryptocrack.de&gt;
</content>
</entry>
</feed>
