ifnotres2: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'
connection=run_sql("""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
res5=[]
forresinres4:
res5.append(res)
res5.sort()
# USER AUTHENTICATED TO PERFORM ACTION WITH ONE ARGUMENT