Subversion Repositories SmartDukaan

Rev

Rev 6206 | Rev 7372 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6206 Rev 6507
Line 113... Line 113...
113
    public boolean canViewDelayedDeliveries() {
113
    public boolean canViewDelayedDeliveries() {
114
        return SecurityUtils.getSubject().hasRole("Outbound");
114
        return SecurityUtils.getSubject().hasRole("Outbound");
115
    }
115
    }
116
    
116
    
117
    public boolean canViewFlaggedPayments() {
117
    public boolean canViewFlaggedPayments() {
118
        return (SecurityUtils.getSubject().hasRole("Outbound") && SecurityUtils.getSubject().hasRole("TeamLead"));
118
        return SecurityUtils.getSubject().hasRole("Outbound");
119
    }
119
    }
120
    
120
    
121
    public boolean canViewDoaRequests() {
121
    public boolean canViewDoaRequests() {
122
        return (SecurityUtils.getSubject().hasRole("Outbound") && SecurityUtils.getSubject().hasRole("TeamLead"));
122
        return (SecurityUtils.getSubject().hasRole("Outbound") && SecurityUtils.getSubject().hasRole("TeamLead"));
123
    }
123
    }
Line 129... Line 129...
129
    public boolean canManageAgents() {
129
    public boolean canManageAgents() {
130
    	return (SecurityUtils.getSubject().hasRole("TeamLead"));
130
    	return (SecurityUtils.getSubject().hasRole("TeamLead"));
131
    }
131
    }
132
    
132
    
133
    public boolean canViewOrderCancellation() {
133
    public boolean canViewOrderCancellation() {
134
        return (SecurityUtils.getSubject().hasRole("Outbound") && SecurityUtils.getSubject().hasRole("TeamLead"));
134
        return SecurityUtils.getSubject().hasRole("Outbound");
135
    }
135
    }
136
    
136
    
137
    public boolean canViewStorePickupTickets() {
137
    public boolean canViewStorePickupTickets() {
138
    	return (SecurityUtils.getSubject().hasRole("Outbound"));
138
    	return (SecurityUtils.getSubject().hasRole("Outbound"));
139
    }
139
    }