Commit d342642 1 parent 097e61d commit d342642 Copy full SHA for d342642
File tree 2 files changed +3
-5
lines changed
foxogram-common/src/main/java/su/foxogram/models
2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 1
- <img src =" .github/assets/backend.png " alt =" Backend Foxogram Floof. " >
1
+ <img src =" .github/assets/backend.png " alt =" Backend FoxoCorp " >
2
2
<img src =" .github/assets/backend_desc.png " alt =" Server side of the Foxogram messenger developed in Java " >
3
3
<img src =" .github/assets/backend_resources.png " alt =" ## Resources " >
4
4
Original file line number Diff line number Diff line change @@ -59,21 +59,19 @@ public boolean hasPermission(MemberConstants.Permissions permission) {
59
59
return (this .permissions & permission .getBit ()) != 0 ;
60
60
}
61
61
62
- public boolean hasPermissions (MemberConstants .Permissions ... permissions ) throws MissingPermissionsException {
62
+ public void hasPermissions (MemberConstants .Permissions ... permissions ) throws MissingPermissionsException {
63
63
for (MemberConstants .Permissions permission : permissions ) {
64
64
if ((this .permissions & permission .getBit ()) == 0 ) {
65
65
throw new MissingPermissionsException ();
66
66
}
67
67
}
68
- return true ;
69
68
}
70
69
71
- public boolean hasAnyPermission (MemberConstants .Permissions ... permissions ) throws MissingPermissionsException {
70
+ public void hasAnyPermission (MemberConstants .Permissions ... permissions ) throws MissingPermissionsException {
72
71
for (MemberConstants .Permissions permission : permissions ) {
73
72
if ((this .permissions & permission .getBit ()) != 0 ) {
74
73
throw new MissingPermissionsException ();
75
74
}
76
75
}
77
- return true ;
78
76
}
79
77
}
You can’t perform that action at this time.
0 commit comments