iftechfoundation / ifdb

The software behind the Interactive Fiction Database (IFDB)
Other
23 stars 18 forks source link

Forbid restricted users from editing tags #325

Closed dfabulich closed 1 month ago

dfabulich commented 1 month ago

This code was mostly copied from check_editing_privileges() in util.php.

Fixes https://github.com/iftechfoundation/ifdb/issues/456

Note that the viewgame page doesn't actually display any of the error messages listed here, which is filed as https://github.com/iftechfoundation/ifdb/issues/396

But, that's no big deal in my book; the main thing was just to prevent restricted users from messing around with tags, not with giving people a clear explanation why they can't. (Somebody can fix 483 in a subsequent PR.)