public function getPermission($action)
    {
        $action = strtoupper($action);
        if ($action == 'LIST') {
            return 'VIEW';
        } elseif ($action == 'SHOW') {
            return 'VIEW';
        } elseif ($action == 'NEW') {
            return 'CREATE';
        } elseif ($action == 'EDIT') {
            return 'EDIT';
        } elseif ($action == 'REMOVE') {
            return 'DELETE';
        }
        return $action;
    }
public function getPermission($action)
    {
        $action = strtoupper($action);
        if ($action == 'LIST') {
            return 'VIEW';
        } elseif ($action == 'SHOW') {
            return 'VIEW';
        } elseif ($action == 'NEW') {
            return 'CREATE';
        } elseif ($action == 'EDIT') {
            return 'EDIT';
        } elseif ($action == 'REMOVE') {
            return 'DELETE';
        }
        return $action;
    }
public function getPermission ( $ action ) { $ action = strtoupper ( $ action ) ; if ( $ action == 'LIST' ) { return 'VIEW' ; } elseif ( $ action == 'SHOW' ) { return 'VIEW' ; } elseif ( $ action == 'NEW' ) { return 'CREATE' ; } elseif ( $ action == 'EDIT' ) { return 'EDIT' ; } elseif ( $ action == 'REMOVE' ) { return 'DELETE' ; } return $ action ; }
Returns the permission for the given action.

@param string $action

@return string
Returns the permission for the given action .