Add data attributes for CurrentUser's privileges to <body> tag (fix #3073).

This commit is contained in:
evazion
2017-05-21 12:29:53 -05:00
parent f1f6e5ccc9
commit 9b613157ae
3 changed files with 14 additions and 2 deletions

View File

@@ -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" %>