Added Roles and Permissions. Some minor UI fixes
This commit is contained in:
@@ -63,8 +63,8 @@ export default function MelodyList() {
|
||||
const [showColumnPicker, setShowColumnPicker] = useState(false);
|
||||
const columnPickerRef = useRef(null);
|
||||
const navigate = useNavigate();
|
||||
const { hasRole } = useAuth();
|
||||
const canEdit = hasRole("superadmin", "melody_editor");
|
||||
const { hasPermission } = useAuth();
|
||||
const canEdit = hasPermission("melodies", "edit");
|
||||
|
||||
useEffect(() => {
|
||||
api.get("/settings/melody").then((ms) => {
|
||||
|
||||
Reference in New Issue
Block a user