prepare($sql); $stmt->execute(['role_id' => $user_role_id]); if ($stmt->rowCount() == 0) { // If no permissions, redirect header('Location: index.php?error=access_denied'); exit; } } function get_roles() { try { $pdo = db(); $stmt = $pdo->query("SELECT * FROM roles ORDER BY name ASC"); return $stmt->fetchAll(PDO::FETCH_ASSOC); } catch (PDOException $e) { return ['error' => 'Database error: ' . $e->getMessage()]; } } $roles = get_roles(); ?> Role Management - IC-Inventory

Role Management

Add New Role

No roles found.

Get started by adding your first role.

Add Role
Name Actions
Edit Delete