return(2,"%s%s"%(CFG_WEBACCESS_WARNING_MSGS[2],(called_fromand"%s%s"%(CFG_WEBACCESS_MSGS[0]%name_action[3:],CFG_WEBACCESS_MSGS[1])or"")))#user has no roles
# -------------------------------------------
# create role string (add default value? roles='(raa.id_accROLE='def' or ')
str_roles=''
for(role,)inres2:
ifstr_roles:str_roles+=','
str_roles+='%s'%(role,)
# TASK 3: authorizations with no arguments given
ifverbose:print'task 3 - checks with no arguments'
ifnotarguments:
# 3.1
ifoptional=='no':
ifverbose:print' - action with zero arguments'
ifcheck_only_uid_p:
connection=run_sql_cached("""SELECT * FROM accROLE_accACTION_accARGUMENT
ifnotres4:return(1,"%s%s"%(CFG_WEBACCESS_WARNING_MSGS[1],(called_fromand"%s%s"%(CFG_WEBACCESS_MSGS[0]%name_action[3:],CFG_WEBACCESS_MSGS[1])or"")))# no entries at all
return(1,"%s%s"%(CFG_WEBACCESS_WARNING_MSGS[1],(called_fromand"%s%s"%(CFG_WEBACCESS_MSGS[0]%name_action[3:],CFG_WEBACCESS_MSGS[1])or"")))# no entries at all
res5.sort()
# USER AUTHENTICATED TO PERFORM ACTION WITH ONE ARGUMENT