File tree Expand file tree Collapse file tree 4 files changed +11
-1
lines changed
Expand file tree Collapse file tree 4 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -624,6 +624,8 @@ sub InitClasses {
624624 require RT::DashboardSubscriptions;
625625 require RT::ObjectContent;
626626 require RT::ObjectContents;
627+ require RT::AuthToken;
628+ require RT::AuthTokens;
627629
628630 _BuildTableAttributes();
629631
@@ -691,6 +693,7 @@ sub _BuildTableAttributes {
691693 RT::DashboardSubscription
692694 RT::ObjectContent
693695 RT::Configuration
696+ RT::AuthToken
694697 ) ;
695698}
696699
Original file line number Diff line number Diff line change @@ -237,6 +237,9 @@ sub PushAll {
237237 # Shorteners
238238 $self -> PushCollections(qw( Shorteners) );
239239
240+ # AuthTokens
241+ $self -> PushCollections(qw( AuthTokens) );
242+
240243 $self -> PushCollections(qw( Links) );
241244 $self -> PushCollections(qw( Transactions Attachments) );
242245
Original file line number Diff line number Diff line change @@ -3118,6 +3118,10 @@ sub FindDependencies {
31183118 );
31193119 $deps -> Add( in => $objs );
31203120
3121+ $objs = RT::AuthTokens-> new( $self -> CurrentUser );
3122+ $objs -> LimitOwner( VALUE => $self -> Id );
3123+ $deps -> Add( in => $objs );
3124+
31213125 # XXX: This ignores the myriad of "in" references from the Creator
31223126 # and LastUpdatedBy columns.
31233127}
Original file line number Diff line number Diff line change @@ -254,7 +254,7 @@ sub estimate {
254254 # Expected types we'll serialize
255255 my @types = map {"RT::$_"} qw/
256256 Queue Ticket Transaction Attachment Link
257- User Group GroupMember Attribute
257+ User Group GroupMember Attribute AuthToken
258258 CustomField CustomFieldValue
259259 ObjectCustomField ObjectCustomFieldValue
260260 Catalog Asset SavedSearch Dashboard DashboardSubscription ObjectContent
You can’t perform that action at this time.
0 commit comments