Permission implementation for the Media application