fixed deprecated function call (user level -> cap)