/** * @inheritdoc */ public function delete($name) { return $this->driver->delete($this->table, 'name=:name', ['name' => $name]); }
/** * Revoke RBAC element from user * * @access public * * @param integer $userId user id * @param string $name element name * * @return bool */ public function revoke($userId, $name) { return $this->db->delete('rbac_user', 'name=:name AND user=:user', ['name' => $name, 'user' => $userId]); }