It is sometimes beneficial to grant a Role for a specified period, automatically removing the grant after a date is passed.
Add an ends_at field to Role and make the appropriate modifications such that when when ends_at is not None, the Role is only valid if datetime_or_now < ends_at. When ends_at is None, current behavior is assumed.
It is sometimes beneficial to grant a
Role
for a specified period, automatically removing the grant after a date is passed.Add an
ends_at
field toRole
and make the appropriate modifications such that when whenends_at is not None
, the Role is only valid ifdatetime_or_now < ends_at
. Whenends_at is None
, current behavior is assumed.