mumuki-laboratory 5.8.0 → 5.8.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 87600d3445c8ae5dbea2faf628e69b2a638fcdd826e8e8aaa051fb2bd3926a18
|
4
|
+
data.tar.gz: 10ba9a35ee5077f52af13797f42029f374d1495218708c8b55255a92ee3b886a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e2051b926a10132b983dcc66382d7ee4615c3d88a1e30921bf25ab7283548428e5adc7833641aa413034db29f74fb3c7d64c4caaf69b2ab12441950f2d8e12b
|
7
|
+
data.tar.gz: ef2059b7ebb09484296395183f2bf3b7b866a79ce794a776dd8b8e517db2da9545b4a3b92ca504682b5f38a9e66854cc76f21a9bb8b964748c7129889c841b03
|
@@ -1,6 +1,6 @@
|
|
1
1
|
class DiscussionsMessagesController < AjaxController
|
2
2
|
before_action :set_discussion!, only: [:create, :destroy]
|
3
|
-
before_action :
|
3
|
+
before_action :authorize_user!, only: [:destroy, :approve]
|
4
4
|
|
5
5
|
def create
|
6
6
|
@discussion.submit_message! message_params, current_user
|
@@ -23,7 +23,7 @@ class DiscussionsMessagesController < AjaxController
|
|
23
23
|
@discussion ||= Discussion.find_by(id: params[:discussion_id])
|
24
24
|
end
|
25
25
|
|
26
|
-
def
|
26
|
+
def authorize_user!
|
27
27
|
current_message.authorize! current_user
|
28
28
|
end
|
29
29
|
|