I found it somewhat wasteful to have different @require decorators for each permission level, eg @require_rat ,@require_techrat, and for some reason @require_recruit.
Half the decorators arn't even in use!
All the decorators share the same base code, the only difference is a hardcoded constant int.
What ive done is replaced all the old decorators with a single require_permission decorator.
I found it somewhat wasteful to have different @require decorators for each permission level, eg
@require_rat
,@require_techrat
, and for some reason@require_recruit
. Half the decorators arn't even in use! All the decorators share the same base code, the only difference is a hardcoded constant int. What ive done is replaced all the old decorators with a singlerequire_permission
decorator.its signature is as follows:
and comes with an enum
Permissions
.