Made methods to check restricted and safe perms of an IC. This is useful
for allowing special cases.