Closed dfabulich closed 1 month ago
This code was mostly copied from check_editing_privileges() in util.php.
check_editing_privileges()
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
viewgame
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.)
This code was mostly copied from
check_editing_privileges()
inutil.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/396But, 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.)