src/dird/ua_acl.c
bool have_restricted_acl(UAContext *ua, int acl)
{
   alist *list;

   /* If no console resource => default console and all is permitted */
   if (!ua || !ua->cons) {
      return false;       /* no restrictions */
   }

   list = ua->cons->ACL_lists[acl];
   if (!list) {
      return false;
   }
   /* Special case *all* gives full access */
   if (list->size() == 1 && strcasecmp("*all*", (char *)list->get(0)) == 0) {
      return false;
   }
   return list->size() > 0;
}
/*
 * Return  true if we have a restriction on the ACL
 *        false if there is no ACL restriction
 */
Return  true if we have a restriction on the ACL
false if there is no ACL restriction
Return true if we have a restriction on the ACL false if there is no ACL restriction
bool have_restricted_acl(UAContext *ua, int acl)
{
   alist *list;
   if (!ua || !ua->cons) {
      return false;       
   }
   list = ua->cons->ACL_lists[acl];
   if (!list) {
      return false;
   }
   if (list->size() == 1 && strcasecmp("*all*", (char *)list->get(0)) == 0) {
      return false;
   }
   return list->size() > 0;
}
bool have_restricted_acl ( UAContext * ua , int acl ) { alist * list ; if ( ! ua || ! ua -> cons ) { return false ; } list = ua -> cons -> ACL_lists [ acl ] ; if ( ! list ) { return false ; } if ( list -> size ( ) == 1 && strcasecmp ( " " , ( char * ) list -> get ( 0 ) ) == 0 ) { return false ; } return list -> size ( ) > 0 ; }
Return  true if we have a restriction on the ACL
        false if there is no ACL restriction
Return true if we have a restriction on the ACL false if there is no ACL restriction
/* If no console resource => default console and all is permitted */ /* no restrictions */ /* Special case *all* gives full access */