Skip to content

Commit 4e89e0c

Browse files
committed
[OPENMEETINGS-2764] permissions being set as expected
1 parent bcdbb43 commit 4e89e0c

File tree

4 files changed

+28
-25
lines changed

4 files changed

+28
-25
lines changed

openmeetings-server/src/site/xdoc/ReleaseGuide.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,11 @@
133133
SET https://github.com/apache/openmeetings/tree/5.0.1
134134
]]></source>
135135
</li>
136+
<li>Add timestamp to parent pom (properties section)
137+
<source>
138+
<project.build.outputTimestamp>YEAR-MONTH-DAY_OF_MONTHT00:00:00Z</project.build.outputTimestamp>
139+
</source>
140+
</li>
136141
<li>
137142
Create a TAG and commit it to the Git<br/>
138143
<source>

openmeetings-web/src/main/java/org/apache/openmeetings/web/app/WebSession.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ public boolean signIn(String secureHash, boolean markUsed) {
341341
private void setUser(User u, Set<Right> rights) {
342342
changeSessionId(); // required to prevent session fixation
343343
userId = u.getId();
344-
if (rights == null || rights.isEmpty()) {
344+
if (rights == null) {
345345
Set<Right> r = new HashSet<>(u.getRights());
346346
if (u.getGroupUsers() != null && !AuthLevelUtil.hasAdminLevel(r)) {
347347
for (GroupUser gu : u.getGroupUsers()) {

openmeetings-web/src/main/java/org/apache/openmeetings/web/pages/HashPage.java

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ public class HashPage extends BaseInitedPage implements IUpdatable {
6868
static final String HASH = "secure";
6969
static final String LANG = "language";
7070
private final WebMarkupContainer recContainer = new WebMarkupContainer(PANEL_RECORDING);
71-
private final VideoInfo vi = new VideoInfo("info");
72-
private final VideoPlayer vp = new VideoPlayer("player");
71+
private final VideoInfo videoInfo = new VideoInfo("info");
72+
private final VideoPlayer videoPlayer = new VideoPlayer("player");
7373
private boolean error = true;
74-
private MainPanel mp = null;
75-
private RoomPanel rp = null;
74+
private MainPanel mainPanel = null;
75+
private RoomPanel roomPanel = null;
7676
private final PageParameters p;
7777

7878
@SpringBean
@@ -91,9 +91,9 @@ private void createRoom(Long roomId) {
9191
Room room = roomDao.get(roomId);
9292
if (room != null && !room.isDeleted()) {
9393
error = false;
94-
rp = new RoomPanel(CHILD_ID, room);
95-
mp = new MainPanel(PANEL_MAIN, rp);
96-
replace(mp);
94+
roomPanel = new RoomPanel(CHILD_ID, room);
95+
mainPanel = new MainPanel(PANEL_MAIN, roomPanel);
96+
replace(mainPanel);
9797
}
9898
}
9999

@@ -128,21 +128,21 @@ protected void onInitialize() {
128128
} else {
129129
Recording rec = i.getRecording();
130130
if (rec != null) {
131-
vi.setVisible(!i.isPasswordProtected());
132-
vp.setVisible(!i.isPasswordProtected());
131+
videoInfo.setVisible(!i.isPasswordProtected());
132+
videoPlayer.setVisible(!i.isPasswordProtected());
133133
if (!i.isPasswordProtected()) {
134-
vi.update(null, rec);
135-
vp.update(null, rec);
134+
videoInfo.update(null, rec);
135+
videoPlayer.update(null, rec);
136136
}
137137
recContainer.setVisible(true);
138138
error = false;
139139
}
140140
Room r = i.getRoom();
141141
if (r != null && !r.isDeleted()) {
142142
createRoom(r.getId());
143-
if (i.isPasswordProtected() && rp != null) {
144-
mp.getChat().setVisible(false);
145-
rp.setOutputMarkupPlaceholderTag(true).setVisible(false);
143+
if (i.isPasswordProtected() && roomPanel != null) {
144+
mainPanel.getChat().setVisible(false);
145+
roomPanel.setOutputMarkupPlaceholderTag(true).setVisible(false);
146146
}
147147
}
148148
}
@@ -153,8 +153,8 @@ protected void onInitialize() {
153153
} else if (recId != null) {
154154
recContainer.setVisible(true);
155155
Recording rec = recDao.get(recId);
156-
vi.update(null, rec);
157-
vp.update(null, rec);
156+
videoInfo.update(null, rec);
157+
videoPlayer.update(null, rec);
158158
error = false;
159159
} else {
160160
createRoom(roomId);
@@ -197,8 +197,8 @@ protected IWsClient getWsClient() {
197197
error = false;
198198
}
199199
}
200-
add(recContainer.add(vi.setOutputMarkupPlaceholderTag(true),
201-
vp.setOutputMarkupPlaceholderTag(true)), new InvitationPasswordDialog("i-pass", this));
200+
add(recContainer.add(videoInfo.setOutputMarkupPlaceholderTag(true),
201+
videoPlayer.setOutputMarkupPlaceholderTag(true)), new InvitationPasswordDialog("i-pass", this));
202202
remove(urlParametersReceivingBehavior);
203203
add(new IconTextModal("access-denied")
204204
.withLabel(errorMsg)
@@ -217,11 +217,11 @@ protected void onParameterArrival(IRequestParameters requestParameters, AjaxRequ
217217
@Override
218218
public void update(AjaxRequestTarget target) {
219219
Invitation i = WebSession.get().getInvitation();
220-
if (i.getRoom() != null && rp != null) {
221-
rp.show(target);
220+
if (i.getRoom() != null && roomPanel != null) {
221+
roomPanel.show(target);
222222
} else if (i.getRecording() != null) {
223-
target.add(vi.update(target, i.getRecording()).setVisible(true)
224-
, vp.update(target, i.getRecording()).setVisible(true));
223+
target.add(videoInfo.update(target, i.getRecording()).setVisible(true)
224+
, videoPlayer.update(target, i.getRecording()).setVisible(true));
225225
}
226226
}
227227
}

pom.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1190,7 +1190,6 @@
11901190
<configuration>
11911191
<source>${jdk.version}</source>
11921192
<target>${jdk.version}</target>
1193-
<optimize>true</optimize>
11941193
<debug>true</debug>
11951194
<encoding>UTF-8</encoding>
11961195
</configuration>
@@ -1247,7 +1246,6 @@
12471246
</module>
12481247
</checkstyleRules>
12491248
<includeTestSourceDirectory>true</includeTestSourceDirectory>
1250-
<encoding>UTF-8</encoding>
12511249
<consoleOutput>true</consoleOutput>
12521250
<failsOnError>true</failsOnError>
12531251
<excludes>**/module-info.java</excludes>

0 commit comments

Comments
 (0)