app/repository/UndoStackRepository.java
public void clearStackOnAllowed(Profile profile) {
        if ((profile.getRoles().contains("admin") || profile.getRoles().contains("global_admin"))) {
            if (canClearStack(profile)) {
                clearStack(profile.getProfileId());
            }
        }
    }
/**
     * Clear the stack if the user has permission and stack is clear
     * @param profile - Profile wanting to clear stack
     */
Clear the stack if the user has permission and stack is clear
@param profile - Profile wanting to clear stack
Clear the stack if the user has permission and stack is clear @param profile - Profile wanting to clear stack
public void clearStackOnAllowed(Profile profile) {
        if ((profile.getRoles().contains("admin") || profile.getRoles().contains("global_admin"))) {
            if (canClearStack(profile)) {
                clearStack(profile.getProfileId());
            }
        }
    }
public void clearStackOnAllowed ( Profile profile ) { if ( ( profile . getRoles ( ) . contains ( "admin" ) || profile . getRoles ( ) . contains ( "global_admin" ) ) ) { if ( canClearStack ( profile ) ) { clearStack ( profile . getProfileId ( ) ) ; } } }
Clear the stack if the user has permission and stack is clear
 @param profile - Profile wanting to clear stack
Clear the stack if the user has permission and stack is clear @param profile - Profile wanting to clear stack