mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-20 10:49:00 +03:00
remove incorrect constraint for viewer as username
should be able to change anyone's role other than admin
This commit is contained in:
@@ -478,8 +478,7 @@ export default function AuthenticationView({
|
||||
<TableCell className="text-right">
|
||||
<TooltipProvider>
|
||||
<div className="flex items-center justify-end gap-2">
|
||||
{user.username !== "admin" &&
|
||||
user.username !== "viewer" && (
|
||||
{user.username !== "admin" && (
|
||||
<Tooltip>
|
||||
<TooltipTrigger asChild>
|
||||
<Button
|
||||
|
||||
Reference in New Issue
Block a user