Check Permission  Function is done