noosfero | WIP: Improvements on AccessLevel class, in order to center how noosfero display content to users. (!1361)
Rodrigo Souto
gitlab at mg.gitlab.com
Tue Dec 19 13:17:09 BRST 2017
Rodrigo Souto started a new discussion on app/concerns/levels.rb:
> end
>
> - def self.range_options(base_level=0, top_level=-1)
> - levels.keys[base_level..top_level]
> + def self.custom_levels
> + {
> + # View private content
> + private_content_role: 25,
> +
> + # Article moderator
> + article_moderator_role: 26
> + }
> + end
> +
> + def self.range_options(base_level=0, top_level=-1, option='key')
> + if top_level < base_level
I didn't understand why this if is needed. Aren't the custom_levels only on the mixed_levels?
---
Reply to this email directly or view it on GitLab: https://gitlab.com/noosfero/noosfero/merge_requests/1361#note_52003391
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20171219/8b30b911/attachment.html>
More information about the Noosfero-dev
mailing list