Allow editing previous revisions of assets in the current version tag
This commit is contained in:
parent
226dd2cf21
commit
75d9a3f08a
2 changed files with 4 additions and 1 deletions
|
|
@ -85,6 +85,7 @@
|
|||
WebGUI and put into the WebGUI Community Wiki, http://www.webgui.org/community-wiki.
|
||||
- The Table of Contents view was removed from the Help system. The only view
|
||||
is now the Help Index.
|
||||
- Allow editing previous revisions of assets in the current version tag
|
||||
|
||||
7.3.21
|
||||
- fix: Self-deactivation doesn't show login screen after success
|
||||
|
|
|
|||
|
|
@ -142,7 +142,9 @@ Returns 1 if it's not locked. Returns 1 if is locked, and the user is using the
|
|||
sub canEditIfLocked {
|
||||
my $self = shift;
|
||||
return 1 unless ($self->isLocked);
|
||||
return ($self->session->scratch->get("versionTag") eq $self->get("tagId"));
|
||||
my $ver_tag = $self->session->scratch->get("versionTag");
|
||||
my ($count) = $self->session->db->quickArray("select count(*) from assetData where assetId=? and tagId=?",[$self->getId, $ver_tag]);
|
||||
return $count > 0;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue