diff options
Diffstat (limited to 'app/models/user.rb')
-rw-r--r-- | app/models/user.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index 84832de39..e4291580e 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -840,6 +840,13 @@ class User < Principal end end + def bookmarked_project_ids + project_ids = [] + bookmarked_project_ids = self.pref[:bookmarked_project_ids] + project_ids = bookmarked_project_ids.split(',') unless bookmarked_project_ids.nil? + project_ids.map(&:to_i) + end + protected def validate_password_length |