<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openslx-ng/slx-admin.git/modules-available/permissionmanager/inc/permissionutil.inc.php, branch master</title>
<subtitle>Web Interface zum Verwalten der Hochschul-/UniSpezifischen Einstellungen der Linux-Umgebung</subtitle>
<id>https://git.openslx.org/openslx-ng/slx-admin.git/atom/modules-available/permissionmanager/inc/permissionutil.inc.php?h=master</id>
<link rel='self' href='https://git.openslx.org/openslx-ng/slx-admin.git/atom/modules-available/permissionmanager/inc/permissionutil.inc.php?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openslx.org/openslx-ng/slx-admin.git/'/>
<updated>2025-12-12T14:16:59+00:00</updated>
<entry>
<title>Add tests using PHPUnit</title>
<updated>2025-12-12T14:16:59+00:00</updated>
<author>
<name>Simon Rettberg</name>
</author>
<published>2025-11-26T09:46:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/openslx-ng/slx-admin.git/commit/?id=7c173411785f959d250d3dfbd7d4cfcb0e20f0e0'/>
<id>urn:sha1:7c173411785f959d250d3dfbd7d4cfcb0e20f0e0</id>
<content type='text'>
Tests generated by Junie AI. Might not have the best possible quality
but at least we got something, and if it turns out to be complete
rubbish, we can just throw it out again without any issues, as this is
independent of the actual code base.
</content>
</entry>
<entry>
<title>[locations] Cleanup Location class</title>
<updated>2025-07-07T11:37:19+00:00</updated>
<author>
<name>Simon Rettberg</name>
</author>
<published>2025-07-07T11:37:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/openslx-ng/slx-admin.git/commit/?id=9a5106c288519b008e0dfe5e85371701af32c0f3'/>
<id>urn:sha1:9a5106c288519b008e0dfe5e85371701af32c0f3</id>
<content type='text'>
There was a mess of functions which mostly, but not quite, did the same
things. Get rid of a couple of them and fix call sites to use
alternative ones that also fit the job.
While at it, add phpdoc and comments to the remaining functions, trying
to clarify what they were designed for.
Lastly, the return type of functions that retrieve a location id has
been changed from false|int to ?int (nullable types are just nicer).
</content>
</entry>
<entry>
<title>Add function param/return types, fix a lot more phpstorm complaints</title>
<updated>2023-11-14T13:47:55+00:00</updated>
<author>
<name>Simon Rettberg</name>
</author>
<published>2023-11-14T13:47:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/openslx-ng/slx-admin.git/commit/?id=06bff0b9b84d47c43f9bc8aff06a29d85ebb7ed0'/>
<id>urn:sha1:06bff0b9b84d47c43f9bc8aff06a29d85ebb7ed0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Roundup of issues reported by PHPStorm</title>
<updated>2023-11-02T18:08:58+00:00</updated>
<author>
<name>Simon Rettberg</name>
</author>
<published>2023-11-02T18:08:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/openslx-ng/slx-admin.git/commit/?id=c2d95ffaeaa289752b4c7b6664b6ca112a02e350'/>
<id>urn:sha1:c2d95ffaeaa289752b4c7b6664b6ca112a02e350</id>
<content type='text'>
Mostly redundant checks, logic errors, dead code, etc.
</content>
</entry>
<entry>
<title>[permissionmanager] Fix for PHP 8</title>
<updated>2022-03-09T14:06:54+00:00</updated>
<author>
<name>Simon Rettberg</name>
</author>
<published>2021-11-29T15:14:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/openslx-ng/slx-admin.git/commit/?id=462c0c2b4402cded7e321a7f57e864f40690e425'/>
<id>urn:sha1:462c0c2b4402cded7e321a7f57e864f40690e425</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Moderize Database handling</title>
<updated>2021-05-11T12:51:13+00:00</updated>
<author>
<name>Simon Rettberg</name>
</author>
<published>2021-05-06T08:26:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/openslx-ng/slx-admin.git/commit/?id=8dc2b92d667f1401ab9f1315a36add61658f899c'/>
<id>urn:sha1:8dc2b92d667f1401ab9f1315a36add61658f899c</id>
<content type='text'>
* Auto-convert to utf8mb4_unicode_520_ci
* Use foreach instead of while to loop over results
* Drop useless statement caching
* Keep emulated prepares, as we sometimes loop over nested queries
</content>
</entry>
<entry>
<title>[permissionmanager] Fix creating bogus negative cache entries</title>
<updated>2019-11-05T16:38:04+00:00</updated>
<author>
<name>Simon Rettberg</name>
</author>
<published>2019-11-05T16:38:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/openslx-ng/slx-admin.git/commit/?id=ddab79e04bc4ffec86946f77e0995b56fd4b0052'/>
<id>urn:sha1:ddab79e04bc4ffec86946f77e0995b56fd4b0052</id>
<content type='text'>
If a permission check for a location yielded false, a cache entry for
all parent locations with value "false" was created as well.
</content>
</entry>
<entry>
<title>[permissionmanager] Implement caching for permission checks</title>
<updated>2019-08-01T11:59:31+00:00</updated>
<author>
<name>Simon Rettberg</name>
</author>
<published>2019-08-01T11:59:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/openslx-ng/slx-admin.git/commit/?id=82aa18343f116c5baf38408b876f00edfe99514d'/>
<id>urn:sha1:82aa18343f116c5baf38408b876f00edfe99514d</id>
<content type='text'>
Some pages, like the location list, triggered excessive amounts of DB
queries when checking permissions. In that specific case, the number of
queries got cut down from 260 to 24, and the page generation time
dropped from 150ms to 80ms. (On a setup with 62 locations)
</content>
</entry>
<entry>
<title>[adduser] Support setting user's roles on add/edit</title>
<updated>2018-02-23T17:41:49+00:00</updated>
<author>
<name>Simon Rettberg</name>
</author>
<published>2018-02-23T17:41:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/openslx-ng/slx-admin.git/commit/?id=00851bd25e57938a79356d2efb36c2bea1697760'/>
<id>urn:sha1:00851bd25e57938a79356d2efb36c2bea1697760</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[permissionmanager] Ensure uniqueness in role_x_location table, consistent table naming, drop unused id field</title>
<updated>2018-02-20T14:20:26+00:00</updated>
<author>
<name>Simon Rettberg</name>
</author>
<published>2018-02-20T14:20:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/openslx-ng/slx-admin.git/commit/?id=7dc7a49e3704b52c4a40909050bf831826b3c41b'/>
<id>urn:sha1:7dc7a49e3704b52c4a40909050bf831826b3c41b</id>
<content type='text'>
</content>
</entry>
</feed>
