~bestpractical/rt/master

« back to all changes in this revision

Viewing changes to lib/RT/Class.pm

  • Committer: sunnavy
  • Date: 2023-10-19 19:45:11 UTC
  • mfrom: (8471.1.577)
  • Revision ID: git-v1:9fca83d11d15fb8034308194b9c9052d5df7d454
Merge branch '5.0-trunk'

Show diffs side-by-side

added added

removed removed

Lines of Context:
507
507
    return $self->{'_cf_include_hash'}{"Value-".$cfobj->Id};
508
508
}
509
509
 
 
510
=head2 CurrentUserCanSee
 
511
 
 
512
Returns true if the current user can see the class, using I<SeeClass>.
 
513
 
 
514
=cut
 
515
 
 
516
sub CurrentUserCanSee {
 
517
    my $self = shift;
 
518
    return $self->CurrentUserHasRight('SeeClass');
 
519
}
 
520
 
 
521
=head2 CurrentUserCanCreate
 
522
 
 
523
Returns true if the current user can create a new class, using I<AdminClass>.
 
524
 
 
525
=cut
 
526
 
 
527
sub CurrentUserCanCreate {
 
528
    my $self = shift;
 
529
    return $self->CurrentUserHasRight('AdminClass');
 
530
}
 
531
 
 
532
=head2 CurrentUserCanModify
 
533
 
 
534
Returns true if the current user can modify the class, using I<AdminClass>.
 
535
 
 
536
=cut
 
537
 
 
538
sub CurrentUserCanModify {
 
539
    my $self = shift;
 
540
    return $self->CurrentUserHasRight('AdminClass');
 
541
}
 
542
 
510
543
=head2 id
511
544
 
512
545
Returns the current value of id.