Add data attributes for CurrentUser's privileges to <body> tag (fix #3073).
This commit is contained in:
@@ -69,7 +69,7 @@
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body lang="en" data-can-approve-posts="<%= CurrentUser.user.can_approve_posts? %>">
|
||||
<body lang="en" <%= body_attributes(CurrentUser.user) %>>
|
||||
<header id="top">
|
||||
<%= render "news_updates/listing" %>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user