In this particular context, only (2) is correct. "Permission" is a mass noun, not a count noun. A user requests permission to do something; "a permission" makes no sense.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.