public bool canDo(RestService.Entities.Action action)
        {
            bool allowed = false;

            for (int i = 0; i < actions.Length; i++)
            {
                if (action.Equals(actions[i]))
                {
                    if (actions[i].allowed)
                    {
                        allowed = true;
                    }
                    else if (!actions[i].allowed)
                    {
                        return false;
                    }
                }
            }

            return allowed;
        }