added cancan check.
added missing file.