'Checks whether a page is restricted (=whether ACLs
are to be applied)
@param c: controller name
@param f: function name'

def page_restricted(self, c=None, f=None):

    modules = current.deployment_settings.modules
    page = ('%s/%s' % (c, f))
    if (page in self.unrestricted_pages):
        return False
    elif ((c not in modules) or ((c in modules) and (not modules[c].restricted))):
        return False
    return True
