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:43 BRST 2017


Rodrigo Souto started a new discussion on app/concerns/levels.rb:

> +      users: 5,
> +
> +      # Only friends and members
> +      related: 10,
> +
> +      # Admins or owner
> +      self: 25,
> +
> +      # Nobody
> +      nobody: -1
> +    }
>    end
>  
> -  def self.range_options(base_level=0, top_level=-1)
> -    levels.keys[base_level..top_level]
> +  def self.custom_levels

Why not define these custom levels on `ArticleAccessLevels`?

---
Reply to this email directly or view it on GitLab: https://gitlab.com/noosfero/noosfero/merge_requests/1361#note_52003468
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/16d809e7/attachment-0001.html>


More information about the Noosfero-dev mailing list