Staff should not be bound by request limits.
This commit is contained in:
parent
d4022bdb31
commit
e2ae6378bd
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ class RadioProfile(Disableable, Timestampable, models.Model):
|
|||
if self.disabled:
|
||||
raise MakeRequestError('User is currently disabled.')
|
||||
|
||||
if self.has_reached_request_max():
|
||||
if self.has_reached_request_max() and not self.user.is_staff:
|
||||
max_requests = get_setting('max_song_requests')
|
||||
message = 'User has reached the maximum request limit ({}).'
|
||||
raise MakeRequestError(message.format(max_requests))
|
||||
|
|
Loading…
Reference in a new issue