Project

General

Profile

« Previous | Next » 

Revision 5735

Added by berkley over 13 years ago

fixed bug in new code

View differences:

src/edu/ucsb/nceas/metacat/accesscontrol/AccessControlList.java
635 635

  
636 636
    /* Get the int value of READ, WRITE, CHMOD or ALL. */
637 637
	public static int intValue(String permission) {
638
		int thisPermission = new Integer(permission).intValue();
638
	    
639
		int thisPermission = 0;
640
		try
641
		{
642
		    thisPermission = new Integer(permission).intValue();
643
		}
644
		catch(Exception e)
645
		{
646
		}
647
		
639 648
		if (permission.toUpperCase().contains(CHMODSTRING)) {
640 649
			thisPermission |= CHMOD;
641 650
		} 

Also available in: Unified diff