LPS-33126 Improve the usability of showing permission button

If we do not check the permission for asset then we would get a consistency issue. That means if only check the site permission then the permission can be shown but when you click the permission button you will get the you not have the required roles error message on GUI. The permission button need the asset permission. So we will show the permission when both permissions were set.